#1

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
Reply
#2

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))
Reply
#3

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;
}
Reply
#4

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
Reply
#5

26 errors is because you have an unmatching or unclosed tag / bracket
Reply
#6

People please help me
Reply
#7

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)