Doesnt work.. - 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)
+--- Thread: Doesnt work.. (
/showthread.php?tid=478653)
Doesnt work.. -
HK - 30.11.2013
Код HTML:
if(GetVehicleModel(GetPlayerVehicleID(playerid) ==543))
{
trucker[playerid] = 1;
SetPlayerCheckpoint(playerid,-60.9470,-1132.2079,1.0781,243.6163,7.0);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You're now on {FF8000FF}trucking mission.");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "SERVER: You must be inside a Sadler to perform this command.");
return 1;
Hello guys, i'm making an trucker mission cmd here, and I wan't it to work only if a player is inside a Sadler, everything works expect when i'm clicking on Trucker.
Then it just says that I need to be in a sadler, even if i'm in a Sadler.
Re: Doesnt work.. -
carloLT - 30.11.2013
You've a mistake here:
if(GetVehicleModel(GetPlayerVehicleID(playerid) ==543))
You've missed closing
) on GetVehicleModel Function.
Correct Code:
pawn Код:
if(GetVehicleModel( GetPlayerVehicleID(playerid) ) ==543)
{
trucker[playerid] = 1;
SetPlayerCheckpoint(playerid,-60.9470,-1132.2079,1.0781,243.6163,7.0);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You're now on {FF8000FF}trucking mission.");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "SERVER: You must be inside a Sadler to perform this command.");
return 1;