SA-MP Forums Archive
Strange errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Strange errors (/showthread.php?tid=361336)



Strange errors - Beastlynoob - 20.07.2012

The errors
Код:
C:\Users\josh\Desktop\Newtrinity\filterscripts\flare.pwn(17) : error 017: undefined symbol "PreloadAnimLib"
C:\Users\josh\Desktop\Newtrinity\filterscripts\flare.pwn(90) : error 029: invalid expression, assumed zero
C:\Users\josh\Desktop\Newtrinity\filterscripts\flare.pwn(92) : error 001: expected token: ";", but found "new"
C:\Users\josh\Desktop\Newtrinity\filterscripts\flare.pwn(97) : error 017: undefined symbol "OnePlayAnim"
C:\Users\josh\Desktop\Newtrinity\filterscripts\flare.pwn(98) : error 017: undefined symbol "X"
The code
Код:
	if (strcmp("/placeflare", cmdtext, true, 10) == 0)
  }
	  DestroyObject(flare)
      new Float:x;
	  new Float:y;
	  new Float:z;
	  new Float:a;
	  GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
	  OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
	  flare = CreateObject(18728, X, Y, Z,   0.00, 0.00, 0.00);
	 return 1;
	}
Please helpme i dont see the problem


Re: Strange errors - hansen111 - 20.07.2012

if (strcmp("/placeflare", cmdtext, true, 10) == 0)
} <-- wrong

if (strcmp("/placeflare", cmdtext, true, 10) == 0)
{ <-- right


Re: Strange errors - Beastlynoob - 20.07.2012

Quote:
Originally Posted by hansen111
Посмотреть сообщение
if (strcmp("/placeflare", cmdtext, true, 10) == 0)
} <-- wrong

if (strcmp("/placeflare", cmdtext, true, 10) == 0)
{ <-- right
When i do that i get a bunch more errors about unreachable code and not implemented