When Player Registers he crashs -
FaZeRs - 26.02.2014
When player try to register his game just crash
Code
PHP код:
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid,0);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
SetPlayerPos(playerid,-1876.3914,49.9433,1055.1891);
SetPlayerInterior(playerid, 14);
//SetPlayerCameraPos(playerid, 751.93, -1673.95, 16.01);
//SetPlayerCameraLookAt(playerid, 699.55, -1628.93, 5.88);
RegistrationStep[playerid] = 1;
SendClientMessageEx(playerid, COLOR_PURPLE, "** You enter the immigration office **");
SendClientMessageEx(playerid, COLOR_WHITE, "[IMMIGRATION] Welcome to Los Santos. I will ask you a few questions before you are allowed entrance.");
SendClientMessageEx(playerid, COLOR_WHITE, "[IMMIGRATION] Are you a Male or Female?");
return 1;
}
Re: When Player Registers he crashs -
Bingo - 26.02.2014
Okay listen waleed,
Where is the location of your imigration? Check if there are alot of cars, Decrease it.
Re: When Player Registers he crashs -
FaZeRs - 26.02.2014
It's a interior in skies, there are not a lot of cars.
And second bug is that my game crashes when i went to Blueberry coords 0;0
Re: When Player Registers he crashs -
Bingo - 26.02.2014
Only your game crashes?
Re: When Player Registers he crashs -
FaZeRs - 26.02.2014
If i set this code
PHP код:
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid,0);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
SetPlayerPos(playerid,1830.803,-1731.561,5203.459);
//SetPlayerCameraPos(playerid, 751.93, -1673.95, 16.01);
//SetPlayerCameraLookAt(playerid, 699.55, -1628.93, 5.88);
RegistrationStep[playerid] = 1;
SendClientMessageEx(playerid, COLOR_PURPLE, "** You enter the immigration office **");
SendClientMessageEx(playerid, COLOR_WHITE, "[IMMIGRATION] Welcome to Los Santos. I will ask you a few questions before you are allowed entrance.");
SendClientMessageEx(playerid, COLOR_WHITE, "[IMMIGRATION] Are you a Male or Female?");
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
All is working.
Re: When Player Registers he crashs -
Bingo - 26.02.2014
Possibly 14th interior is crashing the game.
Re: When Player Registers he crashs -
FaZeRs - 26.02.2014
No it isnt, because i have like
PHP код:
if(dialogid == DIALOG_SPAWN)
{
if(response || !response)
{
for(new x;x<10000;x++)
{
new rand=random(300);
if(PlayerInfo[playerid][pSex] == 0)
{
if(IsValidSkin(rand))
{
PlayerInfo[playerid][pModel] = rand;
SetPlayerSkin(playerid, rand);
break;
}
}
else
{
if(IsFemaleSkin(rand))
{
PlayerInfo[playerid][pModel] = rand;
SetPlayerSkin(playerid, rand);
break;
}
}
}
SetPlayerPos(playerid, -1876.3914,49.9433,1057.1891);
SetPlayerInterior(playerid,14);
PlayerInfo[playerid][pTut] = 1;
gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
TogglePlayerControllable(playerid, 1);
//SetCamBack(playerid);
DeletePVar(playerid, "MedicBill");
SetPlayerColor(playerid,TEAM_HIT_COLOR);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pCarLic] = 0;
}
}
And it sets player position there without crashing after registration
Re: When Player Registers he crashs -
Bingo - 26.02.2014
Then change the spawn point.
Re: When Player Registers he crashs -
FaZeRs - 26.02.2014
But why it's not crashing when player spawns but it is crashing when you register?
Re: When Player Registers he crashs -
FaZeRs - 26.02.2014
Fixed