Client crash for no reason
#1

so,I downloaded a gamemode this day and set it up.
but,the problem is that when I already logged in/registered and going to spawn,i crashed for no reason.

chatlog:
PHP код:
[18:26:03] [NOTICE] {AFAFAF}This server contains themes suitable for mature audiences only.
[
18:26:14Incorrect passwordYou have 2 more attempts before you are kicked.
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15]  
[
18:26:15] ** MOTD8
[18:26:15You have logged in as {AFAFAF}level 1 newbie{FFFFFF}.
[
18:26:15Your last login was on the 14th of April2017 15:58 (server time). 
code:
PHP код:
                        if(PlayerInfo[extraid][pAdmin] > 0) {
                            
SendClientMessageEx(extraidCOLOR_WHITE"Limitless Roleplay: You have logged in as a {FF6347}level %i %s{FFFFFF}."PlayerInfo[extraid][pAdmin], GetAdminRank(extraid));
                        } else if(
PlayerInfo[extraid][pHelper] > 0) {
                            
SendClientMessageEx(extraidCOLOR_WHITE"Limitless Roleplay: You have logged in as a {33CCFF}%s{FFFFFF}."GetHelperRank(extraid));
                        } else if(
PlayerInfo[extraid][pVIPPackage] > 0) {
                            
SendClientMessageEx(extraidCOLOR_WHITE"Limitless Roleplay: You have logged in as a {A028AD}%s VIP{FFFFFF}."GetVIPRank(PlayerInfo[extraid][pVIPPackage]));
                        } else if(
PlayerInfo[extraid][pLevel] >= 2) {
                            
SendClientMessageEx(extraidCOLOR_WHITE"Limitless Roleplay: You have logged in as a {AFAFAF}level %i player{FFFFFF}."PlayerInfo[extraid][pLevel]);
                        } else {
                            
SendClientMessage(extraidCOLOR_WHITE"Limitless Roleplay: You have logged in as a {AFAFAF}level 1 newbie{FFFFFF}.");
                        }
                        
SendClientMessageEx(extraidCOLOR_GREEN"Your last login was on the %s (server time)."date);
                        
StopAudioStreamForPlayer(extraid);
                    }
                    if(
PlayerInfo[extraid][pFaction] >= && FactionInfo[PlayerInfo[extraid][pFaction]][fType] == FACTION_NONE)
                    {
                         
ResetPlayerWeaponsEx(extraid);
                        
SendClientMessageEx(extraidCOLOR_LIGHTRED"You were either kicked from the faction while offline or it was deleted.");
                        
SetPlayerSkin(extraid230);
                        
PlayerInfo[extraid][pFaction] = -1;
                        
PlayerInfo[extraid][pFactionRank] = 0;
                        
PlayerInfo[extraid][pDivision] = -1;
                        
PlayerInfo[extraid][pDuty] = 0;
                        
mysql_format(connectionIDqueryBuffersizeof(queryBuffer), "UPDATE users SET faction = -1, factionrank = 0, division = -1 WHERE uid = %i"PlayerInfo[extraid][pID]);
                        
mysql_tquery(connectionIDqueryBuffer);
                    }
                    if(
PlayerInfo[extraid][pGang] >= && !GangInfo[PlayerInfo[extraid][pGang]][gSetup])
                    {
                        
SendClientMessage(extraidCOLOR_LIGHTRED"You have either been kicked from the gang while offline or it was deleted.");
                        
PlayerInfo[extraid][pGang] = -1;
                        
PlayerInfo[extraid][pGangRank] = 0;
                        
mysql_format(connectionIDqueryBuffersizeof(queryBuffer), "UPDATE users SET gang = -1, gangrank = 0 WHERE uid = %i"PlayerInfo[extraid][pID]);
                        
mysql_tquery(connectionIDqueryBuffer);
                    }
                }
                
SetPlayerToSpawn(extraid);
            }
        } 
SetPlayerToSpawn
PHP код:
SetPlayerToSpawn(playerid)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
    {
        
SetSpawnInfo(playeridNO_TEAMPlayerInfo[playerid][pSkin], 820.540, -1342.628311.521690.0000000000);
        
TogglePlayerSpectating(playerid0);
    }
    else
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            new
                
Float:x,
                
Float:y,
                
Float:z;
            
GetPlayerPos(playeridxyz);
            
SetPlayerPos(playeridxy5.0);
        }
        
SpawnPlayer(playerid);
    }
    
PlayerInfo[playerid][pACTime] = gettime() + 2;

Reply


Messages In This Thread
Client crash for no reason - by PowerF - 14.05.2017, 11:42
Re: Client crash for no reason - by PowerF - 14.05.2017, 15:43
Re: Client crash for no reason - by Dayrion - 14.05.2017, 17:04
Re: Client crash for no reason - by PowerF - 15.05.2017, 00:58

Forum Jump:


Users browsing this thread: 1 Guest(s)