SA-MP Forums Archive
Just a simple .pwn error when compiling - 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: Just a simple .pwn error when compiling (/showthread.php?tid=444090)



Just a simple .pwn error when compiling - Leighton - 15.06.2013

C:\Users\Leighto\Pictures\LSRP\gamemodes\LSRP.pwn( 32452) : warning 202: number of arguments does not match definition
C:\Users\Leighto\Pictures\LSRP\gamemodes\LSRP.pwn( 32452) : warning 202: number of arguments does not match definition
C:\Users\Leighto\Pictures\LSRP\gamemodes\LSRP.pwn( 48470) : warning 202: number of arguments does not match definition


Not sure what i did wrong, here are the lines and if you can please explain what i have to do or change it to.

Line 32452 : if(IsPlayerInRangeOfPoint(playerid, 1 -312.49, 1895.05, 34.06) && GetPlayerVirtualWorld(playerid) == 1337 || IsPlayerInRangeOfPoint(playerid, 1 -312.49, 1895.05, 34.06))// NG Duty

Line 48470 : ShowPlayerDialog(playerid, DIALOG_SHOPORDER, DIALOG_STYLE_INPUT, "Shop Order", "Sorry! We don't have the shop feature enabled here!", "Cancel" );


Thank you for your time.


Re: Just a simple .pwn error when compiling - KingHual - 15.06.2013

You are missing arguments. The warnings (NOT ERRORS) clearly state so.

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

https://sampwiki.blast.hk/wiki/ShowPlayerDialog


Re: Just a simple .pwn error when compiling - Ballu Miaa - 15.06.2013

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 1.0, -312.490, 1895.050, 34.060) && GetPlayerVirtualWorld(playerid) == 1337 || IsPlayerInRangeOfPoint(playerid, 1.0, -312.49, 1895.05, 34.06))// NG Duty
pawn Код:
ShowPlayerDialog(playerid, DIALOG_SHOPORDER, DIALOG_STYLE_INPUT, "Shop Order", "Sorry! We don't have the shop feature enabled here!", "Cancel","");