/crash?!
#1

Ok, so i was scripting a /crash message and it doesn't work. I was told bya good friend that 0.3a fixed the object error. Is there any way to still use the /crash command?
Reply
#2

pawn Код:
GameTextForPlayer(playerid, "~", 1, 5);
Reply
#3

So is this right


Код:
if(strcmp,("/crash", cmdtext, true, 10) == 0)
{
	GameTextForPlayer(playerid, "~". 1, 5);
}
Sorry i confused myself and i can't remember how to do the rest.
Reply
#4

Ok, I've been trying a couple days to make it but nothin works.
Reply
#5

I thought if you just created a non-existent object it would crash? Try creating one of these 301-319. Last time I checked and used these, it doesn't just crash, it freezes up the game.

pawn Код:
if(strcmp,("/crash", cmdtext, true) == 0)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid,x,y,z);
    CreatePlayerObject(playerid,301,x,y,z,0,0,0);
    return 1;
}
Idk if you need to create it at the player's coordinates but it can't hurt.
Reply
#6

Thanks man
But when i compile i get this:
Код:
(944) : error 076: syntax error in the expression, or invalid function call
Reply
#7

Quote:
Originally Posted by ScottCFR
Thanks man
But when i compile i get this:
Код:
(944) : error 076: syntax error in the expression, or invalid function call
I tried it and i dont get that?
Reply
#8

Put a player in a vehicle as a passenger that doesnt have a passenger seat

on trying to exit the player will crash
Reply
#9

Sorry for askin i got an insane headache, How do i put the player in a car as passenger?
Reply
#10

Quote:
Originally Posted by ScottCFR
Sorry for askin i got an insane headache, How do i put the player in a car as passenger?
https://sampwiki.blast.hk/wiki/Function:PutPlayerInVehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)