SA-MP Forums Archive
[Ajuda] Preciso de Ajuda com Meu Comando !! - 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] Preciso de Ajuda com Meu Comando !! (/showthread.php?tid=439098)



Preciso de Ajuda com Meu Comando !! - MatheusMendes - 23.05.2013

Код:
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(967) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
PHP код:
if(strcmp(cmdtext,"/mudar",true) == 0)
{
    new 
pname[MAX_PLAYER_NAME];
    new 
string [256];
    
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "{006400}[INFO]: {FF1493}%s Foi Mudar de Skin!! {FFFF00}( /mudar)"pname);
    
SendClientMessageToAll(Verde_Florestastring);
    
ForceClassSelection(playerid1);
    return 
1;

Criei esse comando para voltar a tela de seleзгo de skin, mais ta dando esse Warning.


Re: Preciso de Ajuda com Meu Comando !! - Hulk3000 - 23.05.2013

pawn Код:
if(strcmp(cmdtext,"/mudar",true) == 0)
{
    new pname[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "{006400}[INFO]: {FF1493}%s Foi Mudar de Skin!! {FFFF00}( /mudar)", pname);
    SendClientMessageToAll(Verde_Floresta, string);
    ForceClassSelection(playerid, 1);
    return 1;
}
sizeof = Damanho De: pnome

Ou

24
pawn Код:
new pname[24];
GetPlayerName(playerid, pname, 24);



Re: Preciso de Ajuda com Meu Comando !! - MatheusMendes - 23.05.2013

ainda ta no mesmo


Re: Preciso de Ajuda com Meu Comando !! - Hulk3000 - 23.05.2013

pawn Код:
ForceClassSelection(playerid);
Passou batido...


Re: Preciso de Ajuda com Meu Comando !! - MatheusMendes - 23.05.2013

haha funfou vlw +rep