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)
+--- Thread: number of arguments does not match definition (
/showthread.php?tid=525380)
number of arguments does not match definition -
Cole_William - 11.07.2014
Well secondary problem
Код:
customgm.pwn(91) : warning 202: number of arguments does not match definition
Line 91:
Код:
INI_WriteInt(File,"LastLoc",GetPlayerPos(playerid));
Also
Код:
customgm.pwn(183) : warning 202: number of arguments does not match definition
Line 183:
Код:
SetPlayerPos(playerid, PlayerInfo[playerid][pLastLoc]);
Re: number of arguments does not match definition -
Konstantinos - 11.07.2014
https://sampwiki.blast.hk/wiki/Function:GetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerPos
You don't use X, Y and Z coordinates as it should be. And in fact, GetPlayerPos returns 0/1 on failure/success so it makes no sense to save whether a function was successful or not.
Re: number of arguments does not match definition -
Cole_William - 11.07.2014
Then how would I save a players last location and when they login they spawn at the saved location?