SA-MP Forums Archive
[Ajuda] ||ґ HELP (PLS) ґ "warning 202: number of arguments does not match definition" - 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] ||ґ HELP (PLS) ґ "warning 202: number of arguments does not match definition" (/showthread.php?tid=586049)



||ґ HELP (PLS) ґ "warning 202: number of arguments does not match definition" - Izaque1998 - 18.08.2015

Galera alguem poderia me ajudar a retirar estes avisos do meu GM, nгo vejo nenhum erro nisso.

PHP Code:
PlayerTextDrawShow(playerid,  LoginDraw4[playerid], 1); 
PHP Code:
PlayerTextDrawShow(playerid,  LoginDraw5[playerid], 1); 
PHP Code:
PlayerTextDrawShow(playerid,  LoginDraw6[playerid], 1); 
PHP Code:
PlayerTextDrawShow(playerid,  LoginDraw12[playerid], 1); 
PHP Code:
PlayerTextDrawShow(playerid,  LoginDraw10[playerid], 1); 
Code:
C:\Users\usar\Desktop\DRAW.pwn(162) : warning 202: number of arguments does not match definition
C:\Users\usar\Desktop\DRAW.pwn(163) : warning 202: number of arguments does not match definition
C:\Users\usar\Desktop\DRAW.pwn(164) : warning 202: number of arguments does not match definition
C:\Users\usar\Desktop\DRAW.pwn(165) : warning 202: number of arguments does not match definition
C:\Users\usar\Desktop\DRAW.pwn(166) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.



Re: ||ґ HELP (PLS) ґ "warning 202: number of arguments does not match definition" - KinX - 18.08.2015

Tire esse " , 1 " no final de cada comando

exemplo
pawn Code:
PlayerTextDrawShow(playerid,  LoginDraw10[playerid]);



Re: ||ґ HELP (PLS) ґ "warning 202: number of arguments does not match definition" - Izaque1998 - 18.08.2015

Eu queria colocar pra ficar clicavel e deu isso:


Code:
C:\Users\usar\Desktop\DRAW.pwn(163) : error 035: argument type mismatch (argument 1)
C:\Users\usar\Desktop\DRAW.pwn(164) : error 035: argument type mismatch (argument 1)
C:\Users\usar\Desktop\DRAW.pwn(165) : error 035: argument type mismatch (argument 1)
C:\Users\usar\Desktop\DRAW.pwn(166) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
my cуde:

PHP Code:
PlayerTextDrawSetSelectable(PlayerText:LoginDraw11);
PlayerTextDrawSetSelectable(PlayerText:LoginDraw21);
PlayerTextDrawSetSelectable(PlayerText:LoginDraw41);
PlayerTextDrawSetSelectable(PlayerText:LoginDraw31); 
Pode me ajudar com isso?


Re: ||ґ HELP (PLS) ґ "warning 202: number of arguments does not match definition" - KinX - 18.08.2015

Faltaram argumentos, coloque assim , para todos eles, adicione (playerid) como argumento 1

Exemplo:

pawn Code:
PlayerTextDrawSetSelectable(playerid, PlayerText:LoginDraw3, 1);



Re: ||ґ HELP (PLS) ґ "warning 202: number of arguments does not match definition" - Izaque1998 - 18.08.2015

Ah entendi tinha da erro denovo ae coloquei assim:

PHP Code:
PlayerTextDrawSetSelectable(playeridPlayerText:LoginDraw3[playerid], true); 
Deu certo vlw.