07.07.2012, 05:35
I started a new script using Y_INI for the first time and I used this tutorial https://sampforum.blast.hk/showthread.php?tid=273088
Below when I added all that stuff i get the following errors.
Line 200
Lines around it.
Below when I added all that stuff i get the following errors.
Код:
C:\Users\COMPUTER\Desktop\SAMPservProject\gamemodes\deathmatch.pwn(200) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\COMPUTER\Desktop\SAMPservProject\gamemodes\deathmatch.pwn(200) : warning 215: expression has no effect C:\Users\COMPUTER\Desktop\SAMPservProject\gamemodes\deathmatch.pwn(200) : error 001: expected token: ";", but found "-string-" C:\Users\COMPUTER\Desktop\SAMPservProject\gamemodes\deathmatch.pwn(200) : warning 215: expression has no effect C:\Users\COMPUTER\Desktop\SAMPservProject\gamemodes\deathmatch.pwn(200) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\COMPUTER\Desktop\SAMPservProject\gamemodes\deathmatch.pwn(200) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Login","Quit");
Код:
public OnPlayerConnect(playerid) { SendClientMessage (playerid, COLOR_WHITE, "-----------------------------"); SendClientMessage (playerid, COLOR_GREY, "Welcome to Deathmatch Script!"); SendClientMessage (playerid, COLOR_GREY, "IP:127.0.0.1"); SendClientMessage (playerid, COLOR_GREY, "Teamspeak: 127.0.0.1"); SendClientMessage (playerid, COLOR_WHITE, "-----------------------------"); if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering...",""COLOR_WHITE"Type your password below to register a new account.","Register","Quit"); } return 1; }