27.06.2016, 22:24
alright so the old common problem, just not sure where Im making a mistake
PHP код:
new PlayerText:TXT_TD_Text[MAX_PLAYERS][12];
new PlayerWeapon[MAX_PLAYERS][13][P_WEAPONS];
for (new i = 0; i <= 12; i++) {
PlayerTextDrawSetPreviewRot(playerid,TXT_TD_Update[playerid][i], 0,0,0, 5.0);
switch(PlayerWeapon[playerid][i][P_WeaponID]) {
case 0: { format(string,sizeof(string),"Ammo: N/A"); UpdateEmptyInventory(playerid,i,string); }
default: { format(string,sizeof(string),"Ammo: %i",PlayerWeapon[playerid][i][P_Ammo]); UpdateInventory(playerid, i, GetGunObjectID(PlayerWeapon[playerid][i][P_WeaponID]),string); }
}
}
Quote:
[00:20:47] [debug] #2 000300d4 in ?? (0, 6139636, 0, 0, 0, 8, 0, 6139636, 0, 0, ... <1073741813 arguments>) from test.amx [00:20:47] [debug] #3 00007fbc in public OnPlayerCommandText (0, 6139636) from test.amx |