A few errors with a teleport script -
Deal-or-die - 03.12.2010
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,
Код:
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");
its fine when i do Just
Код:
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -1525.6919, 711.5699, 7.3628);
but as soon as i try to add the vehicle spawn
Код:
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);
i get these Errors
Код:
(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),
(7015) if(IsPlayerInAnyVehicle(playerid)){
(7016) SetVehiclePos(GetPlayerVehicleID(playerid, -1972.9144, 189.9914, 27.7035);
(7014) SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029),[/CODE]
Re: A few errors with a teleport script -
BMUK - 03.12.2010
pawn Код:
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, -1525.6919, 711.5699, 7.3628);
}
else if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), -1525.6919, 711.5699, 7.3628);
}
Re: A few errors with a teleport script -
SkizzoTrick - 03.12.2010
SetVehiclePos(playerid... ?

)
Sorry man,but you need some tutorials xD
https://sampwiki.blast.hk/wiki/SetVehiclePos
https://sampwiki.blast.hk/wiki/GetVehiclePos
Re: A few errors with a teleport script -
BMUK - 03.12.2010
Why does he need
https://sampwiki.blast.hk/wiki/GetVehiclePos ?
Re: A few errors with a teleport script -
SkizzoTrick - 03.12.2010
Quote:
Originally Posted by BMUK
|
Im giving him much tutorials,maybe he will need it in the future if he dosen't knew the SetVehiclePos
Re: A few errors with a teleport script -
Deal-or-die - 03.12.2010
Of course i need lots of tutorials would be even better if i could find a scripter to do stuff like this for me tho, it would be MUCH better as i am a n00b
Re: A few errors with a teleport script -
Axuj - 03.12.2010
Everyone was a n00b, but they learned. And now they are not