20.07.2012, 21:48
(
Последний раз редактировалось cessil; 21.07.2012 в 10:08.
)
Hello there. I am scripting a roleplay server from scratch, and I have run into a problem when registering and logging in.
This is my current registration code:
However, when I register, this happens:
This is my current registration code:
pawn Код:
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
new INI:file = INI_Open(Path(playerid));
INI_SetTag(file,"Data");
INI_WriteString(file,"Password",hashpass);
INI_WriteInt(file,"Admin",0);
INI_WriteInt(file,"Donator",0);
INI_WriteInt(file,"Money",1000);
INI_WriteInt(file,"Level",1);
INI_WriteInt(file,"Kills",0);
INI_WriteInt(file,"Deaths",0);
INI_WriteInt(file,"Skin",299);
INI_WriteFloat(file,"Health",100);
INI_WriteFloat(file,"Armor",0);
INI_WriteFloat(file,"PosX",1779.69);
INI_WriteFloat(file,"PosY",-1937.75);
INI_WriteFloat(file,"PosZ",13.55);
INI_Close(file);
SetSpawnInfo(playerid, 0, pInfo[playerid][pSkin], 1779.69, -1937.75, 13.55, 30, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SendClientMessage(playerid,-1,"You have been successfully registered.");