17.05.2009, 21:08
ok, woah i understand it perfectly. Thanks a lot
Maybe you can say whats wroing with this:
It always says, tht more cops must be online.
if(Cops_On < 0)
{
GameTextForPlayer(playerid,"More Cops must be Online.",5000,3);
return 1;
}
new Cops[MAX_PLAYERS];
new Cops_On;
forward GetCops();
public GetCops()
{
Cops_On = 0;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i))
{
Cops[i] = 1;
Cops_On++;
}
else
{
Cops[i] = 0;
}
}
}
}

It always says, tht more cops must be online.
if(Cops_On < 0)
{
GameTextForPlayer(playerid,"More Cops must be Online.",5000,3);
return 1;
}
new Cops[MAX_PLAYERS];
new Cops_On;
forward GetCops();
public GetCops()
{
Cops_On = 0;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i))
{
Cops[i] = 1;
Cops_On++;
}
else
{
Cops[i] = 0;
}
}
}
}