11.02.2014, 18:38
I put crashdetect plugin on today. When i checked my console then i saw a pretty much errors.
Here is the code
pawn Код:
[debug] #0 0001a24c in public Benan2idik (0x00000000) from HGB.amx
pawn Код:
public Benan2idik(playerid)
{
new vehicleid,bena_string[256];
vehicleid = GetPlayerVehicleID(playerid);
new bena;
for(new i = 1; i < MAX_VEHICLES; i++)
if( vehicleid != 0)
{
if(IsValidVehicle(vehicleid))
{
if(vInfo[i][vID] == vehicleid) bena = vInfo[i][vBensiin];
else if(fInfo[i][Auto] == vehicleid) bena = fInfo[i][Bensiin];
else if(taInfo[i][Auto] == vehicleid) bena = taInfo[i][Bensiin];
format(bena_string,256,"Bensiini: %i", bena);
TextDrawSetString(benunn[playerid], bena_string);
}
}
else
{
TextDrawSetString(benunn[playerid], " ");
}
return 1;
}