25.04.2014, 17:53 
	
	
	
		I have got the following errors and I don't know how to fix them:
I have made line 528 and 532 red.
I hope anyone here could help me out.
	
	
	
Quote:
| 
			 C:\Users\Kevin 2\Documents\iN Server\gamemodes\Shifty.pwn(52   : error 017: undefined symbol "GetName"C:\Users\Kevin 2\Documents\iN Server\gamemodes\Shifty.pwn(532) : error 017: undefined symbol "dialog" C:\Users\Kevin 2\Documents\iN Server\gamemodes\Shifty.pwn(532) : error 017: undefined symbol "dialog" C:\Users\Kevin 2\Documents\iN Server\gamemodes\Shifty.pwn(532) : error 029: invalid expression, assumed zero C:\Users\Kevin 2\Documents\iN Server\gamemodes\Shifty.pwn(532) : fatal error 107: too many error messages on one line  | 
Код:
public OnPlayerConnect(playerid)
{
	new string[128];
	format (string, sizeof(string), "~r~ The Innovative ~n~~w~ Training server ~n~~r~Enjoy your stay!");
	GameTextForPlayer (playerid, string, 8000, 5);
	new Rand = random(sizeof(RandomColors));
	SetPlayerColor(playerid, RandomColors[Rand]);
 	GivePlayerMoney(playerid, 50000);
 	SetTimerEx("Autorepair",500,true,"d",playerid);
	group[playerid][gid] = -1;
	group[playerid][invited] = -1;
	group[playerid][attemptjoin] = -1;
    format(string, 35, Player_File, GetName(playerid));
    if(!INI_Exists(string))
    {
        format(dialog, sizeof(dialog),""COL_BLUE"Name "COL_WHITE"%s "COL_YELLOW"isn't registered\n\nPlease type a password", GetName(playerid));
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_RED"Welcome on to the server", dialog, "Register", "Exit");
    }
    else
    {
        format(dialog, sizeof(dialog),""COL_YELLOW"Name "COL_WHITE"%s "COL_YELLOW"is registered\n\nPlease login", GetName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""COL_YELLOW"Welcome on to the server",dialog, "Login", "Exit");
    }
	SetPVarInt(playerid, "Join", 1);
	return 1;
}
I hope anyone here could help me out.


 : error 017: undefined symbol "GetName"