if(Account[playerid][pAdminlevel] == 1) { #pragma unused params for(new car = 1; car <= 268; car++) { if(IsVehicleEmpty(car)) SetVehicleToRespawn(car); } GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[News] {FF0000}loaded allcars By %s .",name); SendClientMessageToAll(COLOR_PINK, string); return 1; } return 1; } stock IsVehicleEmpty(vehicleid) { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerInVehicle(i, vehicleid)) return 0; } return 1; }
warning 217: loose indentation
GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[News] {FF0000}loaded allcars By %s .",name); SendClientMessageToAll(COLOR_PINK, string);
if(Account[playerid][pAdminlevel] == 1)
{
new string[128], name[MAX_PLAYER_NAME];
#pragma unused params
for(new car = 1; car <= 268; car++)
{
if(IsVehicleEmpty(car)) SetVehicleToRespawn(car);
}
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[News] {FF0000}loaded allcars By %s .",name);
SendClientMessageToAll(COLOR_PINK, string);
return 1; // I think this one is not needed
}
return 1;
}
Hi Why Give Me a Error ? Help Me + Rep TnX :Xx
If you get the warnings at this line Code:
GetPlayerName(playerid, name, sizeof(name)); |
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(playerid, name, sizeof(name));
Then just delete the " " space before
Code:
GetPlayerName(playerid,name,sizeof(name)); pawn Code:
Code:
GetPlayerName(playerid, name, sizeof(name)); |