Major error need help please
#7

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Try this, I changed few things to improve your script.
Also, can you post GameTextForPlayerEx?

PHP код:
SaveChar(playerid); 
//    for(new a = 0; a < 10; a++)    if(IsPlayerAttachedObjectSlotUsed(playerid, a)) RemovePlayerAttachedObject(playerid, a); 
     
    
new lstr[60]; 
    switch(
reason)
    {
        case 
0format(lstrsizeof(lstr), "%s has left the server. {F81414}(TIMED OUT)"GetName(playerid));
        case 
1format(lstrsizeof(lstr), "%s has left the server. {F81414}(DISCONNECTED)"GetName(playerid));
        case 
2format(lstrsizeof(lstr), "%s has left the server. {F81414}(KICKED / BANNED)"GetName(playerid));
    }
    
SendClientMessageToAll(0xD4D4D4FF,lstr); 
    foreach(
Playeri
    { 
        if (
Specid[i] == playerid && pInfo[i][Spec] == 1
        { 
            
SpecNext(playerid); 
            
GameTextForPlayerEx(playerid,"~R~Player 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

PHP код:
stock GameTextForPlayerEx(playeridtext[], timestyle)
{
    new 
0len;
    while (
text[i])
    {
        if((
len strfind(text[i],"~",true)) != -1)
        {
           if(
text[i] == '~' && IsValidTag(text[i+1]) && text[i+2] == '~')
           
i+2;
           else
           if(
text[i] == '~')
           {
           
strdel(text[i],len,len+1);
           continue;
           }
        }
        
i++;
    }
    return 
GameTextForPlayer(playeridtexttimestyle);

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: 2 Guest(s)