#1

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(31169) : error 006: must be assigned to an array
D:\server\gamemodes\ExtremeGame.pwn(31170) : error 006: must be assigned to an array
Reply
#2

PHP Code:
        if(PlayerInfo[i][pAchievement] == 0status "{FF0000}Realizare incompleta";
        else if(
PlayerInfo[i][pAchievement] == 1status "{00FF00}Realizare completa"
(new status[28]
Reply
#3

status[35] nu status simplu ptr ca e tip string
Reply
#4

fixed, ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)