Yo scripters
#1

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



Код:
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;
}
Reply
#2

pawn Код:
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))
    {
        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;
}
Reply
#3

When i do that i get 15 errors
Reply
#4

Quote:
Originally Posted by New Ilyass
Посмотреть сообщение
When i do that i get 15 errors
Post errors too.

Edit: Have you read my reply?: https://sampforum.blast.hk/showthread.php?tid=218523
Reply
#5

i can't paste the code, is pasted on one line

errors :

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(237) : warning 211: possibly unintended assignment
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(243) : warning 211: possibly unintended assignment
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(244) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(244 -- 245) : warning 215: expression has no effect
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(245) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(247) : warning 211: possibly unintended assignment
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(253) : warning 211: possibly unintended assignment
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(263) : error 017: undefined symbol "Register"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(283) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(283) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(28 : warning 225: unreachable code
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(28 : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(28 : error 017: undefined symbol "Register"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(290) : error 001: expected token: ";", but found "("
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(290) : warning 215: expression has no effect
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(293) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(293) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(294) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(295) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(290) : warning 203: symbol is never used: "Playerdata"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(290 -- 299) : warning 225: unreachable code
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(299) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(299) : error 017: undefined symbol "Login"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(299) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


19 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)