View Single Post
Old 10/05/2010, 10:59 PM   #3
Backwardsman97's Avatar
Join Date: Nov 2007
Posts: 1,501
Reputation: 36
Default Re: [Need Help] Explosive Help.

It shouldn't have compiled fine unless you defined the x y z somewhere else. You should try indenting more though. And what about this guy?

else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");

Why did you open a bracket but not close it?

pawn Code:
if(strcmp(cmdtext, "/PlaceExplosive") == 0)
   new Float: x, Float: y, Float: z;

   if(PlayerInfo[playerid][pMats] > 100)
     PlayerInfo[playerid][pMember] = CreateObject(1225, x, y, z, 0.0, 0.0, A+180);
     SendClientMessage(playerid,COLOR_GREY,"  Not enough Materials for that Weapon!");
   return 1;
Backwardsman97 is offline