[Ajuda] Sistema de salvar em letras e n numeros
#4

Quote:
Originally Posted by garotin
View Post
troque
PHP Code:
 AccountData[playerid][pFuncao] = funcao
por
PHP Code:
format(AccountData[playerid][pFuncao], 300funcao); 
Qualquer erro me avise
E ai amigo, deu esses erros:

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(cmdtextidx);
                if (!
strlen(tmp)) return SendClientMessage(playerid, -1"USE: /admfuncao [ID/Nome] [Funзгo]");
                
giveplayerid ReturnUser(tmp);
                
                
tmp strtok(cmdtextidx);
                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], 300funcao); //error linha 28773
                    
}
                }
            }
            else 
SendClientMessage(playeridCOLOR_GRAD1"ERRO: Vocк nгo tem nнvel administrativo suficiente.");
        return 
1;
    } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)