WTF explode urself with /kill = batch close?
#1

what the fuck, this pwn code closes my server (batch)



if(strcmp(cmdtext, "/kill", true) == 0) { // Same deal as before
new Float, Float:y, Float:z;
// Get Player Position

GetPlayerPos(playerid, x, y, z);

// Create an explosion near the vehicle you get into
CreateExplosion(x+random(5), y+random(20), z+random(5), 6, 1000.0);

return 1;
}
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/kill", true) == 0)
    {
      new Float:X, Float:Y, Float:Z;
      GetPlayerPos(playerid, X,Y,Z);
      CreateExplosion(X+random(5), Y+random(5), Z+random(5), 6, 1000);
         return 1;
    }
    return 0;
}
This code isnt test so i dont know if it works.
Reply
#3

Quote:
Originally Posted by <Krys>
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/kill", true) == 0)
    {
      new Float:X, Float:Y, Float:Z;
      GetPlayerPos(playerid, X,Y,Z);
      CreateExplosion(X+random(5), Y+random(5), Z+random(5), 6, 1000);
        return 1;
    }
    return 0;

that code rapes my pawn and crashes it, again- wtf
This code isnt test so i dont know if it works.
Reply
#4

Maybe because you are adding a integer (random (integer) )to a float. Do a conversion

X + float (random(5))
Reply
#5

Quote:
Originally Posted by Luca Dimonte
Maybe because you are adding a integer (random (integer) )to a float. Do a conversion

X + float (random(5))
And how will i do this...?
Reply
#6

FUCKINGupdate
SERVER RAPE WHEN SOMEONE DIES
WHAT THE FUCK?
Reply
#7

Because the explosion radius goes halfway the map
Reply
#8

Quote:
Originally Posted by dice7
Because the explosion radius goes halfway the map
removed it, server still fucking crashes if someone is blown up by the car explosion
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)