#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(f,1,cmdtext);//
dcmd_f(playerid,params[])
{
new msg[256];
if(gTeam[playerid] == Team_Gs)
{
new aname[MAX_PLAYER_NAME], astr[256];
GetPlayerName(playerid, aname, sizeof(aname));
format(astr, sizeof(astr), "*%s (Grove Street): %s", aname, msg);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[playerid] == Team_Gs)
{
SendClientMessage(i,0x2700FFFF, astr);
}
}
}
}
}
return 1;
}
C:\Users\Simon Siggelkow\Desktop\Pawno\gamemodes\Dm.pwn(1435) : error 017: undefined symbol "dcmd_f"
C:\Users\Simon Siggelkow\Desktop\Pawno\gamemodes\Dm.pwn(1665) : error 017: undefined symbol "dcmd_f"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
also ich verstehe die errors, weiß aber net wieso diese kommen da ich es ja definiert habe...