Server crash when /drag
#2

try this code, if it's still fails, than show me Draggingt function.

PHP код:
CMD:acceptdrag(playeridparams[]) 
{
    new 
dragg GetPVarInt(playerid"DRAGG"); 
    new 
string[128], string2[128]; 
    if(
dragg == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_GRAD1"The player that has invited you has left the server! Invite has been cancelled."), DeletePVar(playerid"DRAGG"); 
    if(
GetDistanceBetweenPlayers(playeriddragg) > 2
    { 
        
SendClientMessage(playeridCOLOR_GRAD1"You're too far away!"); 
        return 
1
    } 
    if(
Dragged[playerid] < && Dragging[dragg] < 0
    { 
        
Dragged[playerid] = dragg
        
Dragging[dragg] = playerid
        
format(stringsizeof(string), "Kamu sedang didrag oleh %s."GetPlayerName(dragg)); 
        
SCM(playeridCOLOR_PURPLEstring); 
        
format(string2sizeof(string2), "Anda telah mendrag %s, /undrag untuk berhenti"GetPlayerName(playerid)); 
        
SCM(draggCOLOR_PURPLEstring2); 
        
draggedtimer[playerid] = SetTimerEx("Draggingt"10001"dd"dragg,playerid); 
    } 
    return 
true

Reply


Messages In This Thread
Server crash when /drag - by Dirda - 02.02.2018, 09:46
Re: Server crash when /drag - by Mugala - 02.02.2018, 10:10
Re: Server crash when /drag - by Dirda - 02.02.2018, 11:28
Re: Server crash when /drag - by Dirda - 02.02.2018, 11:36
Re: Server crash when /drag - by Mugala - 02.02.2018, 11:41
Re: Server crash when /drag - by Dirda - 02.02.2018, 11:46
Re: Server crash when /drag - by edyun - 02.02.2018, 15:30
Re: Server crash when /drag - by Mugala - 02.02.2018, 15:48
Re: Server crash when /drag - by Dirda - 03.02.2018, 05:24
Re: Server crash when /drag - by Dirda - 03.02.2018, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)