Array Index problem
#1

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 
0<= 12i++) {
        
PlayerTextDrawSetPreviewRot(playerid,TXT_TD_Update[playerid][i], 0,0,05.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(playeridiGetGunObjectID(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

Reply


Messages In This Thread
Array Index problem - by TwinkiDaBoss - 27.06.2016, 22:24
Re: Array Index problem - by Stinged - 27.06.2016, 22:37
Re: Array Index problem - by TwinkiDaBoss - 27.06.2016, 23:11
Re: Array Index problem - by Virtual1ty - 27.06.2016, 23:18
Re: Array Index problem - by TwinkiDaBoss - 27.06.2016, 23:20

Forum Jump:


Users browsing this thread: 1 Guest(s)