looping error
#1

Код:
public OnPlayerSpawn(playerid)
{
	new string[128] = "";
	for(new i = 0; i > MAX_CLASSES; i++)
	{
	    if(!strcmp(string, "")) format(string, sizeof(string), "%s\n%s", string, Classes[i][Name]);
		else format(string, sizeof(string), "%s", Classes[i][Name]);
	}
	ShowPlayerDialog(playerid, d_spawn, DIALOG_STYLE_LIST, "Select Class", string, "Select", "");
	return 1;
}
My variables are completely good, the problem is when I place it with my loop, it doesn't show in-game.
Reply


Messages In This Thread
looping error - by TheSimpleGuy - 21.04.2016, 10:48
Re: looping error - by jlalt - 21.04.2016, 10:51
Re: looping error - by TheSimpleGuy - 21.04.2016, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)