14.03.2014, 07:09
This topic name might be wrong regarding this subject which i could need some help with, but anyhow.
Inside this script part, i'm trying to add that when player /detonate they will get 6 stars wanted level but no matter how I try it, when i compile it says "undefined symbol: SetWantedLevel". I'm not sure how to define that, a simple #define SetWantedLevel isn't working. Do i need to include another Inc? Or.. What's up here?
If you need more then just this part, let me know I will post it asap.
Inside this script part, i'm trying to add that when player /detonate they will get 6 stars wanted level but no matter how I try it, when i compile it says "undefined symbol: SetWantedLevel". I'm not sure how to define that, a simple #define SetWantedLevel isn't working. Do i need to include another Inc? Or.. What's up here?
PHP код:
CMD:detonate(playerid, params[])
{
new Float:X,Float:Y,Float:Z;
if(DetonateBomb[playerid] == 1)
{
new SVID = SecurityVanID[playerid];
GetVehiclePos(SVID, X,Y,Z);
CreateExplosion(X, Y, Z, 7, 10);
SetVehicleHealth(SVID, 350);
SVBeingRobbed[SVID] = 1;
DetonateBomb[playerid] = 0;
MoneyLeft[SVID] = 5;
SendClientMessage(playerid, -1,"The bomb went off, /fill the bags and get out of here.");
}
else return SendClientMessage(playerid, -1,"You don't have a bomb planted anywhere.");
return 1;
}