Looping through enum with switch
#9

Quote:
Originally Posted by MotherDucker
Посмотреть сообщение
I have changed it with the square brackets around the fData but it doesn't work. Just comes up with a tag mismatch, undefined symbol and local variable shadows... So that didn't work.


I don't understand? If you mean to switch through all of the ranks and then set it manually? As i have already done this and i am trying it this way to avoid that. But if there isn't a way to do it like this then i'll just revert back to it.
PHP код:
if 
not

PHP код:
switch 
PHP код:
for(new 0fData:fDatap++) {
    if(
pData[i][FactionRank]==fData:p) {
            
FactionPayout += Faction_Data[factionid][fData:p];
            
format(strsizeof(str), "Employement Pay: %i"Faction_Data[factionid][fData:p]);
            break;
        }

Reply


Messages In This Thread
Looping through enum with switch - by MotherDucker - 09.09.2017, 15:38
Re: Looping through enum with switch - by Paulice - 09.09.2017, 19:34
Re: Looping through enum with switch - by n00blek - 09.09.2017, 19:45
Re: Looping through enum with switch - by Misiur - 09.09.2017, 20:29
Re: Looping through enum with switch - by OneDay - 09.09.2017, 21:25
Re: Looping through enum with switch - by MotherDucker - 10.09.2017, 13:00
Re: Looping through enum with switch - by MotherDucker - 12.09.2017, 12:47
Re: Looping through enum with switch - by JasonRiggs - 12.09.2017, 12:48
Re: Looping through enum with switch - by OneDay - 12.09.2017, 13:11

Forum Jump:


Users browsing this thread: 2 Guest(s)