05.06.2017, 14:08
My code is
and i am getting the error error 010: invalid function or declaration
Код:
public OnPlayerCommandText(playerid,cmdtext[]) if (!strcmp("/racetrack",cmdtext,true)) { SetPlayerInterior(playerid,0); if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { LinkVehicleToInterior(GetPlayerVehicleID(playerid),0); SetVehiclePos(GetPlayerVehicleID(playerid),-521.0,-3643.0,7.0); SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0); } else { SetPlayerPos(playerid,-521.0,-3643.0,7.0); SetPlayerFacingAngle(playerid,0.0); } return 1; }