SA-MP Forums Archive
Invalid Function Or Declaration - 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: Invalid Function Or Declaration (/showthread.php?tid=510805)



Invalid Function Or Declaration - RedbullGD - 02.05.2014

Hey guys i'm getting this error.
Код:
C:\Users\NAEEM\Desktop\SGG.pwn(14313) : error 010: invalid function or declaration
C:\Users\NAEEM\Desktop\SGG.pwn(14319) : error 010: invalid function or declaration
C:\Users\NAEEM\Desktop\SGG.pwn(14322) : error 010: invalid function or declaration
C:\Users\NAEEM\Desktop\SGG.pwn(14328) : error 010: invalid function or declaration
C:\Users\NAEEM\Desktop\SGG.pwn(14331) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Here is my script

Код:
if (strcmp("/textdrawoff", cmdtext, true, 10) == 0)
	{
		TextDrawHideForPlayer(playerid,ServerTextdraw[0]);
	    TextDrawHideForPlayer(playerid,ServerTextdraw[1]);
	    TextDrawHideForPlayer(playerid,ServerTextdraw[2]);
	    TextDrawHideForPlayer(playerid,ServerTextdraw[3]);
		return 1;
	}

    if (strcmp("/textdrawon", cmdtext, true, 10) == 0)
	{
		TextDrawShowForPlayer(playerid,ServerTextdraw[0]);
	    TextDrawShowForPlayer(playerid,ServerTextdraw[1]);
	    TextDrawShowForPlayer(playerid,ServerTextdraw[2]);
	    TextDrawShowForPlayer(playerid,ServerTextdraw[3]);
		return 1;
	}

	return 0;
}
Please help