Won't show the ID for ADuty
#1

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
            if (PlayerInfo[i][pADuty] != 0)
                format(string, sizeof(string), "[ATM %d]\n{FFFFFF}/atm to use this machine.", atmid);
            else
                format(string, sizeof(string), "[ATM]\n{FFFFFF}/atm to use this machine.");
        }
So, when I do /aduty it won't show the ATM ID... I don't have a "playerid" under this so I had to use I, am I doing something wrong?
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
            if (PlayerInfo[i][pADuty] != 0)
                format(string, sizeof(string), "[ATM %d]\n{FFFFFF}/atm to use this machine.", atmid);
            else
                format(string, sizeof(string), "[ATM]\n{FFFFFF}/atm to use this machine.", atmid);
        }
OR use this if it doesn't work

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
            if (PlayerInfo[i][pADuty] != 0)
                format(string, sizeof(string), "[ATM %d]\n{FFFFFF}/atm to use this machine.", atmid);
        }
Reply
#3

Quote:
Originally Posted by VladimirMark
Посмотреть сообщение
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
            if (PlayerInfo[i][pADuty] != 0)
                format(string, sizeof(string), "[ATM %d]\n{FFFFFF}/atm to use this machine.", atmid);
            else
                format(string, sizeof(string), "[ATM]\n{FFFFFF}/atm to use this machine.", atmid);
        }
OR use this if it doesn't work

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
            if (PlayerInfo[i][pADuty] != 0)
                format(string, sizeof(string), "[ATM %d]\n{FFFFFF}/atm to use this machine.", atmid);
        }
VladimirMark, I appreciate that you're trying but you gave me the exact same code.... And just added ", atmid" to a string that doesn't have a variable.

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
            if (PlayerInfo[i][pADuty] != 0)
                format(string, sizeof(string), "[ATM %d]\n{FFFFFF}/atm to use this machine.", atmid);
            else
                format(string, sizeof(string), "[ATM]\n{FFFFFF}/atm to use this machine.", atmid); // Why would this work?
        }
Reply
#4

Show your full /aduty code.
Reply
#5

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Show your full /aduty code.
This isn't my /aduty code, and that's not the issue. My issue is, under public I do not have a playerid so I have to do

pawn Код:
for(new i = 0; i > MAX_PLAYERS; i+++) // or however it's suppose to go.
but it's not working, what does my /aduty code have to do with this?
Reply
#6

Huh? What connection does atm and /aduty has? Though i think it will be good to see your command.
Reply
#7

Quote:
Originally Posted by Imperor
Посмотреть сообщение
Huh? What connection does atm and /aduty has? Though i think it will be good to see your command.
[ATM] is under a public not a command. The /aduty command works perfectly fine and doesn't have anything to do with this.
Reply
#8

Well, show the public of atm.
Reply
#9

Quote:
Originally Posted by Imperor
Посмотреть сообщение
Then, can i atleast see its public coding?
Look at the top of the thread.
Reply
#10

Is "string" globalized in the code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)