PDA

View Full Version : error


Stereotype
13/06/2012, 04:06 PM
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_PURPL E,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid,COLOR_LIGHTRED,"Nisi MUP / SIPA / JZP");
}
return 1;
}
return 0;
}




ERROR :

C:\Documents and Settings\Admin\Desktop\GothFahterJohnny\gamemodes\ CommunityRP.pwn(31134) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.





Sorry , i'm new in pawn .. What is problem here? :)

tiernantheman
13/06/2012, 04:10 PM
Search for another OnPlayerCommandText in your script and add that under it and delete the current OnPlayerCommandText.

ViniBorn
13/06/2012, 04:11 PM
Use only one OnPlayerCommandText

Stereotype
15/06/2012, 07:42 AM
it show me the error on second line on { ??