Hi guys, i have a little problem.
I have the command /v who must show me my own vehicles. The problem is that the command doesen't work so i checked my logs.
Problem:
Code:
Variables work fine.
I have the command /v who must show me my own vehicles. The problem is that the command doesen't work so i checked my logs.
Problem:
Code:
[11:39:49] [debug] Run time error 5: "Invalid memory access"
[11:39:49] [debug] AMX backtrace:
[11:39:49] [debug] #0 002d16fc in public cmd_v (0, 10104080) from GM.amx
[11:39:49] [debug] #1 native CallLocalFunction () from samp-server.exe
[11:39:49] [debug] #2 0000089c in public OnPlayerCommandText (0, 10104068) from GM.amx
Code:
for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
{
format(stdlg[playerid], 800, "{FFFFFF}%s\n%s%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][vTax] == 0 ? ("") : (" ({BD0000}seized{FFFFFF})"), Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), Veh[playerid][i][vSp] == 1 ? ("{BD0000}Despawned") : ("{00BA19}Spawned"));
}
Code:
[11:39:49] DEBUG: VehTax - 0
[11:39:49] DEBUG: VehName - Euros
[11:39:49] DEBUG: VehLock - 1
[11:39:49] DEBUG: VehSpawned - 0