[Help] In the /roadblock command
#2

You are getting these errors because you have already defined X, Y and Z earlier in your script. Try this:

Код:
  if(strcmp(cmdtext, "/roadblock", true)==0)
  {
    	new Float:pX, Float:pY, Float:pZ, Float:pA;
    	GetPlayerPos(playerid, pX, pY, pZ);
    	GetPlayerFacingAngle(playerid, pA);
    	CreateObject(981, pX, pY, pZ, 0.0, 0.0, pA);
    	SendClientMessage(playerid, COLOR_GREEN, "RoadBlock Successfully Deployed");
  	return 1;
  }
X, Y and Z have been renamed to pX, pY and pZ. A has been changed to pA too just to match :P
Reply


Messages In This Thread
[Help] In the /roadblock command - by YegerMaster - 14.04.2009, 04:06
Re: [Help] In the /roadblock command - by Benjo - 14.04.2009, 16:32
Re: [Help] In the /roadblock command - by OmeRinG - 14.04.2009, 18:48
Re: [Help] In the /roadblock command - by _PDDRIFTER_ - 15.04.2009, 04:45
Re: [Help] In the /roadblock command - by Bodo4you - 07.05.2009, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)