SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=585460)



Help - Karolukas123 - 14.08.2015

yes, again me.. So today i need to know how to make one sms.. if i use 2 checks and i get 2 sms.. I need what check ...


}
//Policija.
if(vehicleid >= pdcar[14] && vehicleid <= pdcar[16])
{
if(spec != 1 && playerDB[playerid][admin] < 4)
{
print("Tikrinam");
KlaidosZinute(playerid,"Bad");
Stop(playerid);
return 1;
}
if(playerDB[playerid][rangas] < 3 && playerDB[playerid][admin] < 4)
{
print("Tikrinam2");
KlaidosZinute(playerid,"Rang");
Stop(playerid);
return 1;
}
AlgosZinutes(playerid);
print("Tikrinam3");


Re: Help - SickAttack - 14.08.2015

What the heck does sms stand for?

Explain yourself better and when you post code, use the tags [pawn][/pawn] or or .


Re: Help - ThePhenix - 14.08.2015

We can't certainly help you if your code is written in another language, you'd better ask in a scripting section according to your language, otherwise we can't understand your code.


Re: Help - Karolukas123 - 14.08.2015

Mhmm, i geting 2 messages.. if i use 2 checks.. :if(spec != 1 && playerDB[playerid][admin] < 4)
if(playerDB[playerid][rangas] < 3 && playerDB[playerid][admin] < 4)


Re: Help - SickAttack - 14.08.2015

Just add an "else", as in "else if(...".