#12

First, use [pawn] for the script.
At the top
pawn Code:
new GOTOPLAYER;
And at the
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/race", true)) {
        new Float:x,Float:y,Float:z;
        GetPlayerPos(GOTOPLAYER,x,y,z);
        if (GetPlayerState(playerid)==PLAYER_STATE_DRIVER)SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
        else SetPlayerPos(playerid,x,y,z);
        ResetPlayerWeapons(playerid);
        return 1;
    }
//More
==============================================
EDIT:
Here is your mistake


Quote:
Originally Posted by noder51
View Post
pawn Code:
new Float:2057.3955, Float:861.6058, Float:6.7143,181;

GetPlayerPos(GOTOPLAYER, x, y, z);
You need to have them
pawn Code:
new Float:x, Float:y, Float:z;
And here your coordinates
pawn Code:
GetPlayerPos(GOTOPLAYER, 2057.3955, 861.6058, 6.7143,181);
Reply


Messages In This Thread
help - by noder51 - 14.10.2011, 20:35
Re: help - by Tom1412 - 14.10.2011, 21:05
Re: help - by noder51 - 14.10.2011, 21:35
Re: help - by Kostas' - 14.10.2011, 21:42
Re: help - by noder51 - 14.10.2011, 21:43
Re: help - by noder51 - 14.10.2011, 21:45
Re: help - by Kostas' - 14.10.2011, 21:46
Re: help - by noder51 - 15.10.2011, 06:10
Re: help - by GrimR - 15.10.2011, 06:57
Re: help - by $India$ - 15.10.2011, 07:39
Re: help - by noder51 - 15.10.2011, 15:24
Re: help - by Kostas' - 15.10.2011, 15:34
Re: help - by Mr_Scripter - 15.10.2011, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)