SA-MP Forums Archive
Need some 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need some help :) (/showthread.php?tid=91486)



Need some help :) - Rokis - 15.08.2009

Hi, i have a problem with one code. I need that when in the server aren't cops(playerDB[i][specialybe]=1) then i can't enter the car
here the script :
Код:
for(new i = 0; i <MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && playerDB[i][specialybe]!=1){
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_IVORY,"* Serveryje рiuo metu nлra policininkш!";); // no police online < -- 
return 1;
}
when i compile that code no errors and warns but in the server always i cant enter the car. when cops are online, too.
sry for my bad EN.



Re: Need some help :) - DeathOnaStick - 15.08.2009

Quote:
Originally Posted by Rokis
Код:
for(new i = 0; i <MAX_PLAYERS; i++){
You just delete the "{" after the "for clause".
Should look like this then:
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Greetings DeathOnaStick


Re: Need some help :) - Rokis - 15.08.2009

no errors and warns, but it doesn't work ;/


Re: Need some help :) - Rokis - 15.08.2009

Someone help me, plz.