24.10.2018, 12:16
Quote:
Start off with fixing your indentation. Along with that, use sscanf instead of isnull.
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."); } 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. |
Beside that, I have tried to fix it with "else if" but it didn't work.