SA-MP Forums Archive
array - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: array (/showthread.php?tid=650893)



array - enzulikeS - 09.03.2018

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


Re: array - wallen - 09.03.2018

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


Re: array - skuller12 - 09.03.2018

status[35] nu status simplu ptr ca e tip string


Re: array - enzulikeS - 09.03.2018

fixed, ty