Strange errors
#1

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
Reply
#2

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

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)