25.10.2009, 22:26
hehe...
: error 076: syntax error in the expression, or invalid function call
pawn Код:
forward fireworks();
pawn Код:
if (strcmp("/firework", cmdtext, true) == 0)
{
SetTimer(fireworks,2000,1);
SendClientMessage(playerid,YELLOW,"Firework activated");
return 1;
}
pawn Код:
public fireworks()
{
new flare1;
new Float: X, Float: Y, Float: Z;
flare1 = CreateObject(354,X,Y,Z,0,0,0); //set X , Y, Z to cordinates you want
MoveObject(flare1,X,Y,Z+30,20); //set speed to speed of the fireworks going up
}
: error 076: syntax error in the expression, or invalid function call