warning 202: number of arguments does not match definition (Y_INI)
#1

I get it in these two lines only.

Код:
    INI_WriteInt(file,"pPos",GetPlayerPos(playerid));
and

Код:
                SetPlayerPos(playerid,pInfo[playerid][pPos]);
Reply
#2

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.
Reply
#3

PHP код:
new Float:xFloat:yFloat:z;
INI_WriteInt(file,"pPos",GetPlayerPos(playerid,x,y,z)); 
Reply
#4

See the syntax of GetPlayerPos.

https://sampwiki.blast.hk/wiki/GetPlayerPos
Reply
#5

Okay I've fixed the first one, but what about this one?
Код:
                SetPlayerPos(playerid,pInfo[playerid][pPos]);
Reply
#6

See the syntax of SetPlayerPos.

https://sampwiki.blast.hk/wiki/SetPlayerPos
Reply
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
See the syntax of SetPlayerPos.

https://sampwiki.blast.hk/wiki/SetPlayerPos
But where do I put the xyz coord for this?
Код:
                SetPlayerPos(playerid,pInfo[playerid][pPos]);
Reply
#8

SetPlayerPos(playerid,x,y,z);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)