I have a big problem..
#8

Look at these lines:
pawn Код:
else
        {
            PlayerInfo[playerid][pAdmin] = dini_Int(file, "Admin");
            GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
            PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
            SpawnPlayer(playerid);
        }
    }
Try change them with this:
pawn Код:
else
        {
            PlayerInfo[playerid][pAdmin] = dini_Int(file, "Admin");
            GivePlayerMoney(playerid, dini_Int(file, "Money"));
            //PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid); ----- No sense? :S
            SetSpawnInfo(playerid,0,dini_Int(file,"Model"),0.1,0.2,0.3,0.0,0,0,0,0,0,0); //Must specify the spawn data. :|
        SpawnPlayer(playerid); //Now spawn him.
        }
    }
Also, check this: https://sampwiki.blast.hk/wiki/SetSpawnInfo and https://sampwiki.blast.hk/wiki/SpawnPlayer.
And show register/login dialogs in OnPlayerRequestClass.
__________________________________
EDIT:
Quote:
Originally Posted by damiantof71
Посмотреть сообщение
I think this might be your problem but i am not sure..
if(!response) return Kick(playerid);
Not really, it works as a "you must register yes or yes", else you will be kicked.
Reply


Messages In This Thread
I have a big problem.. - by dundolina - 07.08.2012, 22:09
Respuesta: I have a big problem.. - by [DOG]irinel1996 - 07.08.2012, 22:17
Re: I have a big problem.. - by dundolina - 07.08.2012, 22:20
Respuesta: I have a big problem.. - by [DOG]irinel1996 - 07.08.2012, 22:23
Re: I have a big problem.. - by dundolina - 07.08.2012, 22:39
Re: I have a big problem.. - by damiantof71 - 07.08.2012, 23:14
Re: I have a big problem.. - by dundolina - 07.08.2012, 23:16
Respuesta: I have a big problem.. - by [DOG]irinel1996 - 07.08.2012, 23:19
Re: I have a big problem.. - by damiantof71 - 07.08.2012, 23:22
Re: Respuesta: I have a big problem.. - by dundolina - 08.08.2012, 00:35

Forum Jump:


Users browsing this thread: 2 Guest(s)