Need help with announce command
#1

Me and my friend are trying to make a command announce, but something is going wrong what we dont know so might we need your help the code NOW is:

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
        if(strcmp(cmdtext, "/announce", true) && APlayerData[playerid][PlayerLevel] >= 5);
        {
                if(strlen(cmdtext) < 10)
                {
                }

                new gText[128];
                format(gText, sizeof(gText), "%s", cmdtext[10]);
                GameTextForAll(gText, 5000, 3);
        }
		return 1;
}
The errors are:

Код:
C:\Users\Mitchell\Desktop\server\filterscripts\announce.pwn(9) : error 017: undefined symbol "APlayerData"
C:\Users\Mitchell\Desktop\server\filterscripts\announce.pwn(9) : warning 215: expression has no effect
C:\Users\Mitchell\Desktop\server\filterscripts\announce.pwn(9) : error 001: expected token: ";", but found "]"
C:\Users\Mitchell\Desktop\server\filterscripts\announce.pwn(9) : error 029: invalid expression, assumed zero
C:\Users\Mitchell\Desktop\server\filterscripts\announce.pwn(9) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Can someone please help me and my friend?
Reply


Messages In This Thread
Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:09
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:26
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:29
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:31
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:33
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:37
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:56
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:58
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 13:00
Re: Need help with announce command - by Seven_of_Nine - 14.04.2011, 13:42

Forum Jump:


Users browsing this thread: 4 Guest(s)