: error 017: undefined symbol "playerid"
if(playerVariables[x][pSpamCount] >= 1)
playerVariables[x][pSpamCount]--;
if(playerVariables[x][pSpamCount] >= 2 && playerVariables[x][pAdminLevel] == 0) {
playerVariables[x][pMuted] = 20;
playerVariables[x][pSpamCount] = 0;
format(szMessage, sizeof(szMessage), "%s (%d) Maybe is Spammed. [/spec] him..", playerVariables[playerid][pNormalName], playerid);
submitToHelpersAndAdmins(szMessage, COLOR_GREEN);
SendClientMessage(x, COLOR_GREY, "You have been auto-muted for spamming. You will be unmuted in 10 seconds.");
You haven't defined "playerid", you might have meant to use "x"?
|
if(playerVariables[x][pSpamCount] >= 1)
playerVariables[x][pSpamCount]--;
if(playerVariables[x][pSpamCount] >= 2 && playerVariables[x][pAdminLevel] == 0) {
playerVariables[x][pMuted] = 20;
playerVariables[x][pSpamCount] = 0;
format(szMessage, sizeof(szMessage), "%s (%d) Maybe is Spammed. [/spec] him..", playerVariables[x][pNormalName], x);
submitToHelpersAndAdmins(szMessage, COLOR_GREEN);
SendClientMessage(x, COLOR_GREY, "You have been auto-muted for spamming. You will be unmuted in 10 seconds.");