24.10.2018, 11:49
Start off with fixing your indentation. Along with that, use sscanf instead of isnull.
You should consider looking at your code.
In pseudocode this is:
basically, you're running the same check twice with just the second and third step varying. here's how you could fix it, in pseudocode. you'll have to convert this over to pawn afterwards.
you could also run a switch rather than if and else if. Have fun.
You should consider looking at your code.
Код:
if(pInfo[playerid][pPM] == 1) { pInfo[playerid][pPM] = 0; SendClientMessage(playerid,-1,""COL_LGREEN" Now you get PMs."); } if(pInfo[playerid][pPM] == 1) { pInfo[playerid][pPM] = 1; SendClientMessage(playerid,-1,""COL_LGREEN" Now you don't get PMs."); }
Quote:
> if player has pm set to 1 > set pm to 0 > send them a message saying they get pm > if player has pm set to 1 > set pm to 1 > send them a message saying they wont get dm's |
Quote:
> if player has pm set to 1 > set pm to 0 > send them a message saying they get pm > else if player has pm set to 0 > set pm to 1 > send them a message saying they wont get dm's. |