Error "number of arguments does not match definition" please help. - 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)
+--- Thread: Error "number of arguments does not match definition" please help. (
/showthread.php?tid=585641)
Error "number of arguments does not match definition" please help. -
OMonger - 15.08.2015
These are the errors:
Код:
C:\Users\OLLY\Desktop\games\samp scripts\Roleplay (0.3.7)\gamemodes\roleplay.pwn(293) : warning 202: number of arguments does not match definition
C:\Users\-\Desktop\games\samp scripts\Roleplay (0.3.7)\gamemodes\roleplay.pwn(3159) : warning 202: number of arguments does not match definition
These are the lines:
Код:
293 - if(IsPlayerInRangeOfPoint(j, HouseInfo[j][hEnterX], HouseInfo[j][hEnterY], HouseInfo[j][hEnterZ]) && GetPlayerInterior(i) == HouseInfo[j][hOutsideInt] && GetPlayerVirtualWorld(i) == HouseInfo[j][hOutsideVir])
3159 - dini_Get(fstring, "Owner", HouseInfo[houseid][hOwner]);
Re: Error "number of arguments does not match definition" please help. -
Dziugsas - 15.08.2015
293 - you forgot to put the "range" argument
3159 - i forgot DINI ,but i think you need string capacity or stmh like that dini_Get(fstring, "Owner", HouseInfo[houseid][hOwner],MAX_PLAYER_NAME);
Re: Error "number of arguments does not match definition" please help. -
OMonger - 15.08.2015
Quote:
Originally Posted by Dziugsas
293 - you forgot to put the "range" argument
3159 - i forgot DINI ,but i think you need string capacity or stmh like that dini_Get(fstring, "Owner", HouseInfo[houseid][hOwner],MAX_PLAYER_NAME);
|
I did what you said to 3159 - it gave me the same error. I also added a range for the 293. Thank you! +REP.
Re: Error "number of arguments does not match definition" please help. -
Dziugsas - 15.08.2015
take a look at this thread
https://sampforum.blast.hk/showthread.php?tid=158283
Re: Error "number of arguments does not match definition" please help. -
OMonger - 15.08.2015
This worked. Thanks again mate!