SA-MP Forums Archive
What's the problem? - 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: What's the problem? (/showthread.php?tid=156616)



What's the problem? - Ihsan_Cingisiz - 23.06.2010

What's the problem with this script, it compiles very good
but In-Game the bikes needs a license too..

Quote:

new model;
model = GetVehicleModel(vehicleid);
if(model != 509 && 481 && 510) {
if(pDLic[playerid] == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);

SendClientMessage(playerid, COLOR_LRED, "** You don't have a driving license yet, please get your Driving license at the DMV.");
return 1;
}
}




Re: What's the problem? - CAR - 23.06.2010

Change this:
pawn Код:
if(model != 509 && 481 && 510)
to
pawn Код:
if(model != 509 && model != 481 && model != 510)



Re: What's the problem? - Ihsan_Cingisiz - 23.06.2010

Quote:
Originally Posted by CAR
Change this:
pawn Код:
if(model != 509 && 481 && 510)
to
pawn Код:
if(model != 509 && model != 481 && model != 510)
Thanks man! It works!