09.03.2018, 12:21
Code:
CMD:realizare(playerid, params[]) { if(gPlayerLogged[playerid] ==0) return 1; new string[256], string2[256], status; strcat(string2, "Realizare\tStatus\n"); for(new i = 0; i < 3; i++) { if(PlayerInfo[playerid][pAchievement][i] == 0) status = "{FF0000}Realizare incompleta"; else if(PlayerInfo[playerid][pAchievement][i] == 1) status = "{00FF00}Realizare completa"; format(string,sizeof(string), "%s\t%s\n", Realizari(i), status); strcat(string, string2); } ShowPlayerDialog(playerid, DIALOG_REALIZARE, DIALOG_STYLE_TABLIST_HEADERS, "Realizari:", string2, "SELECT", "CLOSE"); return 1; }
D:\server\gamemodes\ExtremeGame.pwn(31170) : error 006: must be assigned to an array