warning 202: number of arguments does not match definition (Y_INI) - 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: warning 202: number of arguments does not match definition (Y_INI) (
/showthread.php?tid=451658)
warning 202: number of arguments does not match definition (Y_INI) -
Grooty - 18.07.2013
I get it in these two lines only.
Код:
INI_WriteInt(file,"pPos",GetPlayerPos(playerid));
and
Код:
SetPlayerPos(playerid,pInfo[playerid][pPos]);
Re: warning 202: number of arguments does not match definition (Y_INI) -
gtakillerIV - 18.07.2013
Wrong parameters for GetPlayerPos. You need to store the X,Y, and Z in a Float.
https://sampwiki.blast.hk/wiki/Function:GetPlayerPos
EDIT: Also you'll need to use INI_WriteFloat.
Re: warning 202: number of arguments does not match definition (Y_INI) -
Chadi - 18.07.2013
PHP код:
new Float:x, Float:y, Float:z;
INI_WriteInt(file,"pPos",GetPlayerPos(playerid,x,y,z));
Re: warning 202: number of arguments does not match definition (Y_INI) -
MP2 - 18.07.2013
See the syntax of GetPlayerPos.
https://sampwiki.blast.hk/wiki/GetPlayerPos
Re: warning 202: number of arguments does not match definition (Y_INI) -
Grooty - 18.07.2013
Okay I've fixed the first one, but what about this one?
Код:
SetPlayerPos(playerid,pInfo[playerid][pPos]);
Re: warning 202: number of arguments does not match definition (Y_INI) -
Scenario - 18.07.2013
See the syntax of SetPlayerPos.
https://sampwiki.blast.hk/wiki/SetPlayerPos
Re: warning 202: number of arguments does not match definition (Y_INI) -
Grooty - 18.07.2013
Quote:
Originally Posted by RealCop228
|
But where do I put the xyz coord for this?
Код:
SetPlayerPos(playerid,pInfo[playerid][pPos]);
Re: warning 202: number of arguments does not match definition (Y_INI) -
Calvingreen17 - 18.07.2013
SetPlayerPos(playerid,x,y,z);