Csináltam az index rendszerhez egy textdrawot de nem jó mert nem jeleníti meg error nincs.
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
if(PRESSED(KEY_LOOK_LEFT)||PRESSED(KEY_LOOK_RIGHT))
{
new veh=GetPlayerVehicleID(playerid);
if(index[veh][indexing])
{
DestroyObject(index[veh][obj1]);
DestroyObject(index[veh][obj2]);
TextDrawHideForPlayer(playerid, IndexbTextDraw);
TextDrawHideForPlayer(playerid, IndexjTextDraw);
index[veh][indexing]=false;
} else {
if(indexcompatible(veh))
{
new oldal2=(PRESSED(KEY_LOOK_LEFT))?1:0;
indexf(veh,oldal2);
TextDrawShowForPlayer(playerid, IndexbTextDraw);
TextDrawShowForPlayer(playerid, IndexjTextDraw);
}
}
}
}
return 1;
}