SA-MP Forums Archive
Need Help Please Read - 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)
+--- Thread: Need Help Please Read (/showthread.php?tid=547124)



Need Help Please Read - Samieastwood - 20.11.2014

Okay i been trying to fix this problem for weeks & weeks.

Okay the problem i have is when you join the server you will have to enter your desired password and click on register & when you click on register it will start asking you questions like "Are you male or female" however the problem i have is when they click register it shows the question and then crashes's it also happens to me.


Second is i check the players information were he was last when he crashes it shows this

PHP код:
SPos_x=0.0
SPos_y
=0.0
SPos_z
=0.4
SPos_r
=0.9 
PICTURE OF ERROR
http://postimg.org/image/c3dfk5umv/


CODE OF QUESTION "MALE OR FEMALE" ETC
PHP код:
SetPlayerSpawn(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        if(
PlayerInfo[playerid][pChar] > 0)
        {
            
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
        }
        else
        {
            
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
        }
        if(
GetPVarInt(playerid, "IsInArena") >= 0)
        {
            
SpawnPaintballArena(playerid, GetPVarInt(playerid, "IsInArena"));
            return 
1;
        }
        if( 
GetPVarInt(playerid, "SpecOff" ) == 1 )
        {
            
SetPlayerPos(playerid, GetPVarFloat(playerid, "SpecPosX"), GetPVarFloat(playerid, "SpecPosY"), GetPVarFloat(playerid, "SpecPosZ"));
            
SetPlayerInterior(playerid, GetPVarInt(playerid, "SpecInt"));
            
SetPlayerVirtualWorld(playerid, GetPVarInt(playerid, "SpecVW"));
            
SetPVarInt(playerid, "SpecOff", 0 );
            
SetPVarInt(playerid, "SpecState", -1 );
            return 
1;
        }
        if(
PlayerInfo[playerid][pTut] == 0)
        {
            
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            
TogglePlayerControllable(playerid,0);
            
SetPlayerColor(playerid,TEAM_HIT_COLOR);
            
SetPlayerPos(playerid, 766.50, -1684.32, -6.86);
               
SetPlayerCameraPos(playerid, 751.93, -1673.95, 16.01);
            
SetPlayerCameraLookAt(playerid, 699.55, -1628.93, 5.88);
            
RegistrationStep[playerid] = 1;
            
SendClientMessageEx(playerid, COLOR_GREEN, "Please fill in some information to proceed.");
            
SendClientMessageEx(playerid, COLOR_LIGHTGREEN,"Are you a Male or Female? (Type in what you are).");
            
SetPlayerVirtualWorld(playerid, 1984);
            return 
1;
        }
        new 
rand;
        if(
PlayerInfo[playerid][pBeingSentenced] > 0)
        {
            
PhoneOnline[playerid] = 1;
            
rand = random(sizeof(WarrantJail));
            
SetPlayerPos(playerid, WarrantJail[rand][0], WarrantJail[rand][1], WarrantJail[rand][2]);
            if(
rand != 0) courtjail[playerid] = 2;
            else 
courtjail[playerid] = 1;
            
TogglePlayerControllable(playerid, 0);
            
GameTextForPlayer(playerid, "Loading Objects.", 4000, 5);
            
SetPVarInt(playerid, "LoadingObjects", 1);
            
SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
            
SetPlayerInterior(playerid, 0);
            
PlayerInfo[playerid][pInt] = 0;
            return 
1;
        } 
NOTE: I HAVE LATEST STREAMER ETC


AW: Need Help Please Read - Samieastwood - 20.11.2014

HERE IS THE IMAGE OF THE REGISTRATION WHEN YOU FIRST LOAD THE SERVER
http://postimg.org/image/j6mv83ax9/

FOR SOME REASON THE BUILDINGS ARE UN-TEXTURED I DONT KNOW WHY


AW: Need Help Please Read - JaysonJee - 20.11.2014

lol i had the same problem as well and i just gave up