14.04.2011, 12:09
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:
The errors are:
Can someone please help me and my friend?
Код:
// 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; }
Код:
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.