SA-MP Forums Archive
Crashdetect errors - 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)
+--- Thread: Crashdetect errors (/showthread.php?tid=494106)



Crashdetect errors - AA9 - 11.02.2014

I put crashdetect plugin on today. When i checked my console then i saw a pretty much errors.
pawn Код:
[debug] #0 0001a24c in public Benan2idik (0x00000000) from HGB.amx
Here is the code
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;

}



Re: Crashdetect errors - AA9 - 11.02.2014

Solved