14.04.2009, 16:32
You are getting these errors because you have already defined X, Y and Z earlier in your script. Try this:
X, Y and Z have been renamed to pX, pY and pZ. A has been changed to pA too just to match :P
Код:
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; }