13.06.2012, 15:06
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/stopf1", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*Clan Drzvnih agencija :: %s vam naredjuje da zaustavite auto i pokazete dozvole.", sendername);
ProxDetector(45.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid,COLOR_LIGHTRED,"Nisi MUP / SIPA / JZP");
}
return 1;
}
return 0;
}
ERROR :
Quote:
C:\Documents and Settings\Admin\Desktop\GothFahterJohnny\gamemodes\ CommunityRP.pwn(31134) : error 021: symbol already defined: "OnPlayerCommandText" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
Sorry , i'm new in pawn .. What is problem here?