31.12.2018, 17:41
But, in this case isn't it if "fname = CheckPlayerFactName(playerid);"
The fname should match the faction name right? (SAPD, SAMD, etc)
I can just use "if", but I'm trying to use the "switch" method
So, I'd better use "switch, case" or "if"?
example
The fname should match the faction name right? (SAPD, SAMD, etc)
I can just use "if", but I'm trying to use the "switch" method
So, I'd better use "switch, case" or "if"?
example
Код:
switch (string) { * case SAPD: } //OR if (string == SAPD) { do something; }