30.01.2011, 11:50
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47) : error 001: expected token: ";", but found "("
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47) : warning 215: expression has no effect
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(50) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(50) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(51) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47) : warning 203: symbol is never used: "Playerdata"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 53) : warning 209: function "OnPlayerConnect" should return a value
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 54) : error 055: start of function body without function header
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 57) : error 010: invalid function or declaration
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 57) : fatal error 107: too many error messages on one line
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47) : warning 215: expression has no effect
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(50) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(50) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(51) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47) : warning 203: symbol is never used: "Playerdata"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 53) : warning 209: function "OnPlayerConnect" should return a value
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 54) : error 055: start of function body without function header
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 57) : error 010: invalid function or declaration
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(47 -- 57) : fatal error 107: too many error messages on one line
Код:
public OnPlayerConnect(playerid) { new Playerdata(64); new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name); if(dini_Exists(Playerdata)) return 1; } { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Enter your desired password here to login","Login", "Cancel"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registration", "Write here your desired password:", "Register", "Cancel"); } return 1; }