14.09.2013, 16:50
(
Последний раз редактировалось Drago987; 14.09.2013 в 18:15.
)
Anyone knows how to fix these errors ?
here is the command which has these errors
Код:
C:\Users\Win 7\Downloads\Compressed\LSRP(48134) : error 017: undefined symbol "IsAdmin" C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48137) : error 017: undefined symbol "Syntax" C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48138) : error 017: undefined symbol "Error" C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48139) : error 017: undefined symbol "Error" C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48141) : error 035: argument type mismatch (argument 2) C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48143) : error 035: argument type mismatch (argument 2) C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48149) : error 017: undefined symbol "Syntax" C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48150) : error 017: undefined symbol "Error" C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48152) : error 035: argument type mismatch (argument 2) C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48154) : error 035: argument type mismatch (argument 2) C:\Users\Win 7\Downloads\Compressed\LSRP.pwn(48156) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 11 Errors.
PHP код:
CMD:am(playerid, params[])
{
if(IsAdmin(playerid))
{
new toid, message[65];
if(sscanf(params, "us[65]", toid, message)) return Syntax(playerid, "[a]dmin[m]essage", "[playerid] [message]");
if(strlen(message) > 65) return Error(playerid, "Your message cannot be longer than 65 characters.");
if(!IsPlayerConnected(toid)) return Error(playerid, "That player is not connected!");
new string[128];
format(string, "Admin message from %s: %s", GetPlayerNameEx(playerid), message);
SendClientMessageEx(toid, COLOR_GREEN, string);
format(string, "Admin %s [%d] > %s [%d]: %s", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(toid), toid, message);
SendAdminMessage(COLOR_GREEN,string);
}
else
{
new message[80];
if(sscanf(params, "s[80]", message)) return Syntax(playerid, "[a]dmin[m]essage", "[message]");
if(strlen(message) > 80) return Error(playerid, "Your message cannot be longer than 80 characters.");
new string[128];
format(string, "Admin message from %s [%d]: %s", GetPlayerNameEx(playerid), playerid, message);
SendAdminMessage(COLOR_GREEN,string);
format(string, "Your message, %s, has been sent.", message);
SendClientMessageEx(playerid, COLOR_GREEN, string);
format(string, "Player %s [%d] > Admins: %s", GetPlayerNameEx(playerid), playerid, message);
}
return 1;
}