SA-MP Forums Archive
[HELP] Works but gives error? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Works but gives error? (/showthread.php?tid=263922)



[HELP] Works but gives error? - euRo - 24.06.2011

Код:
CMD:hidename(playerid,params[]) {
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) {
    	for(new i = 0; i < MAX_PLAYERS; i++)
		{
	    	ShowPlayerNameTagForPlayer(i, playerid, 0);
		}
	}
}

CMD:showname(playerid,params[]) {
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) {
    	for(new i = 0; i < MAX_PLAYERS; i++)
		{
	    	ShowPlayerNameTagForPlayer(i, playerid, 1);
		}
	}
}
OK the above two codes work but when typed it says "Unknown Command" although it works, why?


Re: [HELP] Works but gives error? - dr.pepper - 24.06.2011

Are you forgetting to add a:

pawn Код:
return 1;
?


Re: [HELP] Works but gives error? - euRo - 24.06.2011

LOLOLOOL