My registration script doesn't work
#1

C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(222) : warning 211: possibly unintended assignment
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(22 : warning 211: possibly unintended assignment
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(265) : error 001: expected token: ";", but found "("
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(265) : warning 215: expression has no effect
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(26 : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(26 : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(269) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(270) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SAMP Server\gamemodes\Freeroam.pwn(265) : warning 203: symbol is never used: "Playerdata"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


Код:
stock Register(playerid,key[])
{
	new Playerdata(64);
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
	format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
	dini_Create(Playerdata);
	dini_Set(Playerdata,"Password",key);
	return 1;
}
Reply
#2

pawn Код:
stock Register(playerid,key[])
{
    new Playerdata[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
    dini_Create(Playerdata);
    dini_Set(Playerdata,"Password",key);
    return 1;
}
I fixed one line, where are the errors?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)