SA-MP Forums Archive
error - 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: error (/showthread.php?tid=350698)



error - Stereotype - 13.06.2012

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?


Re: error - tiernantheman - 13.06.2012

Search for another OnPlayerCommandText in your script and add that under it and delete the current OnPlayerCommandText.


Re: error - ViniBorn - 13.06.2012

Use only one OnPlayerCommandText


Re: error - Stereotype - 15.06.2012

it show me the error on second line on { ??