Train - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Train (
/showthread.php?tid=186068)
Train -
Hoss - 27.10.2010
Hello people
I try to make script when train will come in Las Venturas to appear annouce exemple
Train is in Los Santos you have 10 minutes to get in train
Here is coords
/new train
if(IsPlayerInVehicle(playerid,train))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,,1700.4967 ,-1955.4222,13.5469,))
{
SendClientMessageToAll(COLOR_RED,"Train is in Los Santos you have 10 minutes to get in train");
Errors:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Help me please
Re: Train -
DarrenReeder - 27.10.2010
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10.0,,1700.4967 ,-1955.4222,13.5469,))
Change that to
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10.0,1700.4967 ,-1955.4222,13.5469))
Re: Train -
Cameltoe - 27.10.2010
pawn Код:
command(trainannounce, playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) != TRAINMODELHERE) return SendClientMessage(playerid, COLOR_RED,"You have to be inside the train to use this command..");
SendClientMessageToAll(COLOR_RED,"Train is in Los Santos you have 10 minutes to get in train");
return 1;
}
Re: Train -
Hoss - 27.10.2010
Quote:
Originally Posted by DarrenReeder
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10.0,,1700.4967 ,-1955.4222,13.5469,))
Change that to
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10.0,1700.4967 ,-1955.4222,13.5469))
|
now i have 26 errors
Any people help me
Respuesta: Train -
admantis - 27.10.2010
26 errors is because you have an unmatching or unclosed tag / bracket
Re: Train -
Hoss - 04.11.2010
People please help me
Re: Train -
HrvojeCro - 04.11.2010
pawn Код:
new train;
train = AddStaticVehicle(trainid, x,y,z, ....);
if(IsPlayerInVehicle(playerid,train))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,,1700.4967 ,-1955.4222,13.5469))
{
SendClientMessageToAll(COLOR_RED, "Train is in Los Santos you have 10 minutes to get in train");
}
return 1;
}