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?
}