SA-MP Forums Archive
warning 202: number of arguments does not match definition - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=180246)



warning 202: number of arguments does not match definition - sekol - 30.09.2010

Код:
warning 202: number of arguments does not match definition
I'm getting this on
PHP код:
if(dini_Int(file"Skуra""Biała")) 
what's wrong?


Re: warning 202: number of arguments does not match definition - Stefan_Toretto - 30.09.2010

Код:
if(dini_Int(file, "Skуra", "Biała"));
you forgot the ";"
maybe... not so sure...


Re: warning 202: number of arguments does not match definition - sekol - 30.09.2010

PHP код:
if 
cannot be with ";". Look at any script and see if it's here.


Re: warning 202: number of arguments does not match definition - rbN. - 30.09.2010

First bug: dini_Int and if doesn't work.

Btw, here is the explanation, sorry for my shit English:

The problem is that you did if(dini_Int(file, "Skуra", "Biała")), but you never ended with something..

Good way: if (gTeam[playerid] == TEAM_GROVE). That means that if gTeam[playerid] is the same as TEAM_GROVE, it will continue..

So, if I should explain your 'line', it will be this: if dini_Int is the same as ...... nothing.. You forgot what it should be :P


Second bug: It's dini_Int(filename[],key[]).. You have 3 values..


Re: warning 202: number of arguments does not match definition - Hal - 30.09.2010

i would get that error if i had an extra value in a line. So maybe you have to add/take out something.


Re: warning 202: number of arguments does not match definition - sekol - 30.09.2010

So how can i check if in player file is line like
Код:
Skуra = Biała
Код:
   1. This forum requires that you wait 120 seconds between posts. Please try again in 88 seconds.
A'ight listen mo'fucker! Do not occur anymore, bcos ima burn your house


Re: warning 202: number of arguments does not match definition - MadeMan - 30.09.2010

pawn Код:
if(strcmp(dini_Get(file, "Skуra"), "Biała", true) == 0)



Re: warning 202: number of arguments does not match definition - sekol - 30.09.2010

thanks
8characterslong