Jump to content

help +2


Bugged MehD
 Share

Recommended Posts

de ce am obține această eroare de fiecare dată când ceva greșit ??

 

 

caWeOjf.jpg

 

vhp9aEP.jpg

 

code 

 

CMD:vgroup(playerid, params[]) {
if(playerVariables[playerid][pAdminLevel] >= 4) {
   if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be inside the vehicle that you wish to alter the group requirement of.");
 
new
string[96],
   groupParam = strval(params);
 
if(groupParam < 0 || groupParam > MAX_GROUPS) return SendClientMessage(playerid, COLOR_GREY, "Invalid group ID.");
 
        for(new x = 0; x < MAX_VEHICLES; x++) {
            if(vehicleVariables[x][vVehicleScriptID] == GetPlayerVehicleID(playerid)) {
                vehicleVariables[x][vVehicleGroup] = groupParam;
 
                saveVehicle(x);
 
                switch(groupParam) {
 
case 0: format(string, sizeof(string), "You have removed group restrictions from this vehicle (%d).", x);
default: format(string, sizeof(string), "You have changed this vehicle's group to %s (vehicle %d).", groupVariables[groupParam][gGroupName], x);
}
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
        }
}
else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
return 1;
}

 

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.