05.02.2011, 18:59
Quote:
|
Acho , ACHO , que falta um SendClientMessage depois que fez o cmd , no lugar do Format , use o SendClientMessage que talvez vб !
|
Код:
C:\Documents and Settings\Pedro\Desktop\GM Novo\Brasil New Life Roleplayer\Brasil New Life Roleplayer\gamemodes\BRASILNEWLIFE.pwn(35394) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 12988 bytes Code size: 2598488 bytes Data size: 7097164 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 9725024 bytes 1 Warning.
Код:
SendClientMessage(playerid, COLOR_ROSA, "[Administrador] Veнculos inutilizados resetados por %s.", sendername);
Код:
if(strcmp(cmd, "/rc", true) == 0 || strcmp(cmd, "/rc", true) == 0) //respawncars
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4000)
{
SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
return 1;
}
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player < MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new car = 1; car <= CAR_AMOUNT; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_ROSA, "[Administrador] Veнculos inutilizados resetados por %s.", sendername);
BroadCast(COLOR_YELLOW2, string);
}
return 1;
}


