Need some help :)
#1

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.
Reply
#2

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
Reply
#3

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

Someone help me, plz.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)