SA-MP Forums Archive
no of arguements do not match the definition size - 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: no of arguements do not match the definition size (/showthread.php?tid=655525)



no of arguements do not match the definition size - div - 23.06.2018

Код:
new safeid = GetPlayerVirtualWorld(playerid, safeid);
No of arguements do no match the definition size..


Re: no of arguements do not match the definition size - JasonRiggs - 23.06.2018

the syntax of
PHP код:
GetPlayerVirtualWorld 
is like that..

PHP код:
GetPlayerVirtualWorld(playerid
So you must use it like that..

PHP код:
new safeid GetPlayerVirtualWorld(playerid



Re: no of arguements do not match the definition size - CodeStyle175 - 23.06.2018

#define gvw GetPlayerVirtualWorld

new vw=gvw(playerid);

or you could also create variable for virutal world and use that.


Re: no of arguements do not match the definition size - JasonRiggs - 23.06.2018

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
#define gvw GetPlayerVirtualWorld

new vw=gvw(playerid);

or you could also create variable for virutal world and use that.
Why to just increase the lines and the defines of the script for something which is easy to write..?


Re: no of arguements do not match the definition size - Verc - 23.06.2018

Quote:
Originally Posted by ******
Посмотреть сообщение
Why are you changing the name like that?
Because he doesn't even know what he's doing


Re: no of arguements do not match the definition size - CodeStyle175 - 24.06.2018

its time wasteful to write over and over again same long function.