[Ajuda] Porque desse warning? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Porque desse warning? (
/showthread.php?tid=436130)
Porque desse warning? -
davi54723 - 10.05.2013
pawn Код:
CMD:reforco(playerid, params[])
{
if(CSMBR[playerid] == ROCAM || CSMBR[playerid] == ROTA) // VERIFICA SE Й POLICIAL
{
new Float:x, Float:y, Float:z;
new name[MAX_PLAYER_NAME+1], string[100+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "O Policial %s Precisa de apoio urgente.", name);
SendFamilyMessage(1,Vermelho, string);
SendFamilyMessage(4,Vermelho, string);
GetPlayerPos(playerid, x, y, z);
SetPlayerCheckpoint(playerid, x, y, z);
}
else
{
SendClientMessage(playerid, 0xAA3333AA, "Vocк nгo pode pedir reforзo sendo que nгo й policial!");
}
return 1;
}
warning 202: number of arguments does not match definition
1 Warning.
Respuesta: Porque desse warning? -
Parka - 10.05.2013
pawn Код:
CMD:reforco(playerid, params[])
{
if(CSMBR[playerid] == ROCAM || CSMBR[playerid] == ROTA) // VERIFICA SE Й POLICIAL
{
new Float:x, Float:y, Float:z;
new name[MAX_PLAYER_NAME+1], string[100+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "O Policial %s Precisa de apoio urgente.", name);
SendFamilyMessage(1,Vermelho, string);
SendFamilyMessage(4,Vermelho, string);
GetPlayerPos(playerid, x, y, z);
SetPlayerCheckpoint(playerid, x, y, z, 2.0);
}
else
{
SendClientMessage(playerid, 0xAA3333AA, "Vocк nгo pode pedir reforзo sendo que nгo й policial!");
}
return 1;
}
Re: Porque desse warning? -
davi54723 - 10.05.2013
Valeu