17.12.2011, 18:27
pawn Код:
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(120) : error 017: undefined symbol "playerVariables"
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(120) : error 017: undefined symbol "playerid"
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(120) : error 029: invalid expression, assumed zero
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(120) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
CMD:accent(id, params[]) {
if(playerVariables[playerid][pStatus] >= 1) {
if(!isnull(params)) {
if(strlen(params) >= 19) {
SendClientMessage(playerid, COLOR_GREY, "Invalid accent length. Accents can only consist of 1-19 characters.");
}
else {
mysql_real_escape_string(params, playerVariables[playerid][pAccent]);
format(szMessage, sizeof(szMessage), "You are now speaking in a '%s' accent.", params);
SendClientMessage(playerid, COLOR_WHITE, szMessage);
}
}
else {
return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/accent [accent] ('none' to disable)");
}
}
return 1;