SA-MP Forums Archive
Problem with OnPlayerCommandText - 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: Problem with OnPlayerCommandText (/showthread.php?tid=365037)



Problem with OnPlayerCommandText - BlackyvomBlackhausen - 01.08.2012

Hello

Sorry for my Bad English

Ich make i Gamemode and i will add the Include S32_house ...

but when i Compile the GM become i a Waring and the commands are not going ...

Код:
pawno\include\YSI\internal\y_dohooks.inc(1325) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
onplayercommandtext on my GM:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new string[128];
	format(string, sizeof(string), "Fehler: {ffffff}Der Befehl {007D00}%s {ffffff}konnte nicht gefunden werden.", cmdtext);
	Echo(playerid, cRot, string);
	dcmd(base,4,cmdtext);
	dcmd(defence,7,cmdtext);
	return 1;
}
and the define from the y_dohooks.inc

Код:
#define OnPlayerCommandText S@@_OnPlayerCommandText
ALS_FORWARD<PlayerCommandText>
can anyone help me please
this is my first GM