SA-MP Forums Archive
My registration script doesn't work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My registration script doesn't work (/showthread.php?tid=218509)



My registration script doesn't work - New Ilyass - 30.01.2011

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;
}



Re: My registration script doesn't work - armyoftwo - 30.01.2011

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?