SetPlayerPos doesnt work
#1

Hey guys,
today i finished my script, but i can't go into my checkpoints, if i reach the checkpoint, the position of the players doesnt change, only the facing angle were changed.

I tested it with debug infos, everything works, but the setplayerpos doesn't work.

Heres my code:
Код:
	if(strcmp(cmd, "/test", true) == 0)
	{
		SetPlayerPos(playerid, 1261.1570,2217.2432,7.9373);
		SetPlayerFacingAngle(playerid, 118.3505);
		return 1;
	}
Reply
#2

first of all, dont use outdated command processors
use ZCMD.
and check parameters.
also, comment the angle line and see if it makes any change to the player at all?
Reply
#3

Change to

Код:
    if(!strcmp(cmdtext,"/test",true))
    {            
        SetPlayerPos(playerid,1261.1570,2217.2432,7.9373);
        SetPlayerFacingAngle(playerid, 118.3505);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)