Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Client crash for no reason

$
0
0
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 Code:

[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 Code:

                        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 Code:

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;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>