Major error need help please
#5

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
and more...

Multiple reasons for your problem. Can you post the whole callback here?


Onplayerdisconnect
PHP код:
    SaveChar(playerid);
//    for(new a = 0; a < 10; a++)    if(IsPlayerAttachedObjectSlotUsed(playerid, a)) RemovePlayerAttachedObject(playerid, a);
    
    
new l[56];
    if(
reason == 0) { "TIMED OUT"; }
    if(
reason == 1) { "DISCONNECTED"; }
    if(
reason == 2) { "KICKED / BANNED"; }
    new 
lstr[256];
    
format(lstrsizeof(lstr), "%s has left the server. {F81414}(%s)"GetName(playerid), l);
    
SendClientMessageToAll(0xD4D4D4FF,lstr);
       foreach(
Playeri)
    {
        if (
Specid[i] == playerid && pInfo[i][Spec] == 1)
        {
            
SpecNext(playerid);
            
GameTextForPlayerEx(playerid,"~R~Player ~R~Disconnected",2000,3);
        }
    }
    if(
Duel[playerid] >=2)
    {
        if(
Maderequest[playerid] == 1)
        {
            new 
PID Duelopponent[playerid];
            
SpawnPlayer(PID);
            
KillTimer(UnDuelend[playerid]);
            
KillTimer(UnDuelend[PID]);
            
Duel[PID] = 0;
            
Duelrounds[PID] = 0;
        }
        else if(
Gotrequest[playerid] == 1)
        {
            new 
PID Duelmaker[playerid];
            
SpawnPlayer(PID);
            
KillTimer(UnDuelend[playerid]);
            
KillTimer(UnDuelend[PID]);
            
Duel[PID] = 0;
            
Duelrounds[PID] = 0;
        }
    }
    
ResetVariables(playerid);
       return 
1;

Reply


Messages In This Thread
Major error need help please - by 1fret - 25.11.2017, 04:53
Re: Major error need help please - by Kane - 25.11.2017, 05:09
Re: Major error need help please - by 1fret - 25.11.2017, 11:02
Re: Major error need help please - by Dayrion - 25.11.2017, 13:59
Re: Major error need help please - by 1fret - 25.11.2017, 14:13
Re: Major error need help please - by Dayrion - 25.11.2017, 16:42
Re: Major error need help please - by 1fret - 25.11.2017, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)