Server crash when /drag
#3

still, server console closed itself.

I dont know which one is the function
PHP код:
forward Draggingt(draggplayerid);
public 
Draggingt(draggplayerid)
{
        new 
Float:dXFloat:dYFloat:dZ;
        
GetPlayerPos(draggdXdYdZ);
        
SetPlayerPos(playeriddX+1dYdZ);
}
CMD:drag(playeridparams[])
{
//line 32964    new ID, string[26+MAX_PLAYER_NAME], string2[20+MAX_PLAYER_NAME];
     
if(sscanf(params"u"ID)) return SendClientMessage(playeridCOLOR_WHITE"Pemakaian: /drag [playerid]");
     if(
ID == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_GRAD1"Player not connected!");
      if(
ID == playerid) return SendClientMessage(playeridCOLOR_GRAD1"You can't drag yourself!");
      if(
GetDistanceBetweenPlayers(playeridID) > 2)
     {
            
SendClientMessage(playeridCOLOR_GRAD1"You're too far away!" );
            return 
1;
      }
    
SetPVarInt(ID"DRAGG"playerid);
    
//line 32975    format(string2, sizeof(string2), "%s Telah menawari drag kepada anda, /acceptdrag untuk menerimanya", GetPlayerName(playerid));
    
SendClientMessage(IDCOLOR_GRAD1string2);
    
SendClientMessage(playeridCOLOR_GRAD1"Anda telah berhasil mengirim tawaran drag kepada player!");
    return 
true;
}
// New drag
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;
//line 32995        format(string, sizeof(string), "Kamu sedang didrag oleh %s.", GetPlayerName(dragg));
        
SCM(playeridCOLOR_PURPLEstring);
//line 32997        format(string2, sizeof(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)