} new playname[MAX_PLAYER_NAME], ircMsg[256]; GetPlayerName(playerid, playname, sizeof(playname)); format(ircMsg, sizeof(ircMsg), "[%d]%s: %s", playerid, playname, text); IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg); return 1; } |
E:\ServerSamp\WTDM\Samp\gamemodes\lotustdm.pwn(265 6) : error 010: invalid function or declaration E:\ServerSamp\WTDM\Samp\gamemodes\lotustdm.pwn(265 : error 010: invalid function or declaration |
} new playname[MAX_PLAYER_NAME], ircMsg[256]; GetPlayerName(playerid, playname, sizeof(playname)); format(ircMsg, sizeof(ircMsg), "[%d]%s: %s", playerid, playname, text); IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg); return 1; }
E:\ServerSamp\WTDM\Samp\gamemodes\lotustdm.pwn(265 5) : error 021: symbol already defined: "GetPlayerName" E:\ServerSamp\WTDM\Samp\gamemodes\lotustdm.pwn(265 : error 010: invalid function or declaration |
public OnPlayerText(playerid, text[])
{
new playname[MAX_PLAYER_NAME], ircMsg[256];
GetPlayerName(playerid, playname, sizeof(playname));
format(ircMsg, sizeof(ircMsg), "[%d] %s: %s", playerid, playname, text);
IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg);
return 0;
}
error 021: symbol already defined: "OnPlayerText" |
public OnPlayerText(playerid, text[])
{
new playname[MAX_PLAYER_NAME], ircMsg[256];
GetPlayerName(playerid, playname, sizeof(playname));
format(ircMsg, sizeof(ircMsg), "[%d] %s: %s", playerid, playname, text);
IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg);
return 0;
}