08.09.2013, 17:02
Quote:
I've got
Код:
COMMAND:lv(playerid, params[]) { SetVehiclePos(vehicleid, 2005.7919,1544.5870,13.5042) SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 2005.7919,1544.5870,13.5042); PutPlayerInVehicle(playerid, vehicleid, 0); SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to: Las Venturas"); return 1; } error 017: undefined symbol "vehicleid" error 017: undefined symbol "vehicleid" How do I make it so I can use vehicleid inside of the command? |
Код:
COMMAND:lv(playerid, params[]) { new vehicleid = GetPlayerVehicleID(playerid); if(!IsPlayerInAnyVehicle(playerid)) { SetPlayerPos(playerid, 2005.7919,1544.5870,13.5042); } else { SetVehiclePos(vehicleid, 2005.7919,1544.5870,13.5042) } SetPlayerVirtualWorld(playerid, 0); SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to: Las Venturas"); return 1; }