Expected token.
#1

Hi, I got this problem:

pawn Код:
SA-MP Server\gamemodes\DRP.pwn(412) : error 001: expected token: ",", but found ";"
But, everything I try give other warnings.

pawn Код:
gPlayerLogged[playerid] = 1;
PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
SetPlayerPos(playerid, dini_Float(file, "Position")-GetPlayerPos(playerid, x, y, z);
SendClientMessage(playerid, COLOR_YELLOW, "You have succesfully logged in!");
When I add an extra ) to the GetPlayerPos(playerid, x, y, z));
I get the following:

pawn Код:
SA-MP Server\gamemodes\DRP.pwn(412) : warning 202: number of arguments does not match definition
SA-MP Server\gamemodes\DRP.pwn(412) : warning 202: number of arguments does not match definition
Reply
#2

which one is line 412?
Reply
#3

Which line?
Reply
#4

pawn Код:
SetPlayerPos(playerid, dini_Float(file, "Position")-GetPlayerPos(playerid, x, y, z);
Sorry, forgot to add.
Reply
#5

Код:
SetPlayerPos(playerid, dini_Float(file, "Position")-GetPlayerPos(playerid, x, y, z));
there should be a bracket after that

and these are the parameters of using setplayerpos:

PHP код:
SetPlayerPos(playerid,Float:x,Float:y,Float:z
Reply
#6

If you would read the first post, I already tried that.
Reply
#7

read my edit
Reply
#8

pawn Код:
SetPlayerPos(playerid, dini_Float(file, "Position"))-GetPlayerPos(playerid, x, y, z);
Reply
#9

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
pawn Код:
SetPlayerPos(playerid, dini_Float(file, "Position"))-GetPlayerPos(playerid, x, y, z);
im pretty sure that wont work, and you need to save each individual coordinate of the position, the x, y and z
Reply
#10

Fixed. Ps, none of you made it work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)