Help with objects
#8

When I added this code: (BTW if you want to know which line is which tho top line that says "CMD: smokeon(playerid, params[])" is line number "5668".
Код:
CMD:smokeon(playerid, params[])
{
  new objectid = CreateObject(2780,487.70001221,-2.40000010,999.70001221,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach) (3)
  SendClientMessage(playerid, COLOR_RED, "Smoke turned on");
  return 1;
}
CMD:smokeoff(playerid, params[])
{
  DestroyObject(objectid);
  SendClientMessage(playerid, COLOR_RED, "Smoke turned off");
  return 1;
}
I got this:

Код:
(5670) : warning 204: symbol is assigned a value that is never used: "objectid"
(5676) : error 017: undefined symbol "objectid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
How can I fix this?
PLEASE Help I will +rep anyone that can help me
Reply


Messages In This Thread
Help with objects - by Finn707 - 14.05.2012, 20:53
Re: Help with objects - by Jonny5 - 14.05.2012, 22:09
Re: Help with objects - by Finn707 - 15.05.2012, 15:11
Re: Help with objects - by Finn707 - 16.05.2012, 14:34
Re: Help with objects - by Jonny5 - 16.05.2012, 16:27
Re: Help with objects - by Jaxson - 16.05.2012, 16:38
Re: Help with objects - by Finn707 - 16.05.2012, 18:13
Re: Help with objects - by Finn707 - 17.05.2012, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)