always spawning at 0.0, 0.0, 0.0 on register and login.
#1

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:

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.");
However, when I register, this happens:
Reply


Messages In This Thread
always spawning at 0.0, 0.0, 0.0 on register and login. - by Why - 20.07.2012, 21:48
Re : always spawning at 0.0, 0.0, 0.0 on register and login. - by DeeCaay - 20.07.2012, 21:53
Re: always spawning at 0.0, 0.0, 0.0 on register and login. - by Why - 20.07.2012, 22:33

Forum Jump:


Users browsing this thread: 1 Guest(s)