My Script is not working properly, Any Help?
#1

Alright, i have scripted this with a bit of help.

Quote:

if(strcmp(cmd, "/loadproducts", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172))
{
if(IsPlayerInVehicle(playerid, 49)
{
if(truckjob[playerid] == 0)
{
SendClientMessage(playerid, COLOR_BLUE, "Deliver the Products to IdleWood Gas Station. (RED MARK)");
SetPlayerCheckpoint(playerid, 1925.0168,-1787.8075,13.3906, 10);
truckjob[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You Are Not At The Delivery Place Or You Have Already Got Products To Deliver!");
}
SendClientMessage(playerid, COLOR_GRAD2, "You Are Not In The Right Vehicle! Get in a Boxvill Van!");
}
}
return 1;
}
return 1;
}

When i compile it, it compiles fine.

When i go IG and goto the loading point and type /loadproducts, Nothing happens.. I want it too say "You are not in the Right Vehicle" but it doesnt :/

Same with everthing else, i type /loadproducts in the boxvill van and nothing happens.
Everything worked okay up to when i added that they must be in the right vehicle.

Oh right, Everything did happen before i added the vehicle but the Error Messages still didnt work :/

Am i missing something in it ?

I would appritiate it alot if someone could help me out here

Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)