03.12.2010, 07:12
ok, i have a cmd that teleports you around the place using a menu that appears when you type /go
i am having a problem with adding case 6,
its fine when i do Just
but as soon as i try to add the vehicle spawn
i get these Errors
(7015) if(IsPlayerInAnyVehicle(playerid)){
(7016) SetVehiclePos(GetPlayerVehicleID(playerid, -1972.9144, 189.9914, 27.7035);
(7014) SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029),[/CODE]
i am having a problem with adding case 6,
Код:
case 6: ShowPlayerDialog(playerid, 1536, DIALOG_STYLE_LIST, "More Locations", "Hospital\nSF-PD\nHall\nSpawn\nWheel Arch Angels\nThe Yves Family\nBank\n", "Select", "Cancel");
Код:
SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -1525.6919, 711.5699, 7.3628);
Код:
SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -1525.6919, 711.5699, 7.3628), if(IsPlayerInAnyVehicle(playerid)){ SetVehiclePos(GetPlayerVehicleID(playerid, -1525.6919, 711.5699, 7.3628);
Код:
(7014 -- 7015) : error 029: invalid expression, assumed zero (7015) : error 028: invalid subscript (not an array or too many subscripts): "IsPlayerInAnyVehicle" (7016) : warning 202: number of arguments does not match definition (7016) : warning 202: number of arguments does not match definition (7016) : warning 202: number of arguments does not match definition (7016) : error 001: expected token: ",", but found ";"
Код:
(7014) SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029),
(7016) SetVehiclePos(GetPlayerVehicleID(playerid, -1972.9144, 189.9914, 27.7035);
(7014) SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029),[/CODE]