CreateExplosion Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateExplosion Problem (
/showthread.php?tid=339460)
CreateExplosion Problem -
speediekiller2 - 03.05.2012
hello,
if i do
Код:
if(!strcmp("/nuke", cmdtext, true))
{
new Float: X, Float: Y, Float: Z;
CreateExplosion(X,Y,Z,4,45);
return 1;
}
then it shows me nothing no explosion:S
thnx for all your help,
speediekiller2
Re: CreateExplosion Problem -
MadeMan - 03.05.2012
Where do you want the explosion to happen? Near player?
Re: CreateExplosion Problem -
speediekiller2 - 03.05.2012
no in the player them selves or near the player is already good
Re: CreateExplosion Problem -
Marricio - 03.05.2012
pawn Код:
if(!strcmp("/nuke", cmdtext, true))
{
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z );
CreateExplosion(X,Y,Z,4,45);
return 1;
}
You didn't set the variables X Y Z value, so the explosion created at default value 0.0.
Re: CreateExplosion Problem -
speediekiller2 - 03.05.2012
oooh ive got it thnx for helping