06.10.2015, 07:48
Quote:
troque
PHP Code:
PHP Code:
|
Code:
C:\Users\2\Desktop\Brasil United Life\gamemode\gamemodes\2.pwn(28773) : error 035: argument type mismatch (argument 3) C:\Users\2\Desktop\Brasil United Life\gamemode\gamemodes\2.pwn(28767) : warning 204: symbol is assigned a value that is never used: "funcao" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
PHP Code:
if (strcmp(cmd, "/admfuncao", true) == 0)
{
if (AccountData[playerid][pAdmin] == 3000)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) return SendClientMessage(playerid, -1, "USE: /admfuncao [ID/Nome] [Funзгo]");
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) return SendClientMessage(playerid, -1, "USE: /admfuncao [ID/Nome] [Funзгo]");
new funcao = strval(tmp); //error linha 28767
if (IsPlayerConnected(giveplayerid))
{
if (giveplayerid != INVALID_PLAYER_ID)
{
format(AccountData[playerid][pFuncao], 300, funcao); //error linha 28773
}
}
}
else SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк nгo tem nнvel administrativo suficiente.");
return 1;
}