18.11.2011, 18:22
Hi,
I have a problem with a global variable.I have this:
The problem is that after a player re-connects, the variable is set back to 0.(I think this happens after a player connects)
I have a problem with a global variable.I have this:
pawn Код:
enum cars
{
iNo,
//others
};
new CInfo[MAX_VEHICLES][cars]
//and some command that should change iNo
if(IsPlayerConnected(playerid))
{
new vehid = GetPlayerVehicleID(playerid);
CInfo[vehid][iNo] = 1;
}