17.08.2016, 13:03 
	
	
	
		Hello everyone, while I was working on MTA Deathmatch Race Gamemode script that was made by Hwang, I was adding a Login and Register system, and when I came to compile, I got these errors:
My Code:
	
	
	
	
Код:
C:\Users\PC-9\Desktop\Fun-Generation [DD.DM] Server\gamemodes\dmrace.pwn(352) : warning 225: unreachable code C:\Users\PC-9\Desktop\Fun-Generation [DD.DM] Server\gamemodes\dmrace.pwn(589) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\PC-9\Desktop\Fun-Generation [DD.DM] Server\gamemodes\dmrace.pwn(589) : warning 215: expression has no effect C:\Users\PC-9\Desktop\Fun-Generation [DD.DM] Server\gamemodes\dmrace.pwn(589) : error 001: expected token: ";", but found "-string-" C:\Users\PC-9\Desktop\Fun-Generation [DD.DM] Server\gamemodes\dmrace.pwn(589) : warning 215: expression has no effect C:\Users\PC-9\Desktop\Fun-Generation [DD.DM] Server\gamemodes\dmrace.pwn(589) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\PC-9\Desktop\Fun-Generation [DD.DM] Server\gamemodes\dmrace.pwn(589) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
581-public OnPlayerConnect(playerid)
582-{
583-    new string[156], name[MAX_PLAYER_NAME];
584-    SendClientMessage(playerid, COLOR_MTA, "Welcome to pro Hunters [DD/DM] Training Server!");
585-	GetPlayerName(playerid, name, sizeof name);
586-    if(fexist(UserPath(playerid)))
587-	{
588-	    INI_ParseFile(UserPath(playerid), "LoadUser_%s");
589-	    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Login","Quit");
590- 	}
591-  	else
592-   	{
593-	    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering...",""COLOR_WHITE"INFO: Type your password below to register to save your account's stats!","Register","Quit");
594- 	}
595-	format(string, sizeof string, "%s has joined this server.", name);
596-	SendClientMessageToAll(COLOR_MTA, string);
597	return 1;
598-}

