What Wrong Here?
#1

hi

i have problem , when i compile , i get this error:
Код:
: error 017: undefined symbol "playerid"

code
pawn Код:
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.");
Reply
#2

You haven't defined "playerid", you might have meant to use "x"?
Reply
#3

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
You haven't defined "playerid", you might have meant to use "x"?
yes "x" bro forget) , can u do me a code , what he writed ( when he detect to admin ) Ex : ID:59 ,Maybe spamed/flood ,''Spamed:heey heey heey''

understand what i mean? =p
Reply
#4

Bump!
Reply
#5

CalvinC already gave you the answer, just read the error and read your code again and again until you have found the problem.
Reply
#6

pawn Код:
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.");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)