strcmp bad checking or what?
#7

No AndreT because i removed everything from OnPlayerText callback /* */ and put only code. And i changed message to text (from callback) and nothing too.

enum sLosowyKod[16];
pawn Код:
sLosowyKod[16],
bool:sCodeActive,
pawn Код:
if(SerwerInfo[sCodeActive])
    {
        printf("DEBUG: |%s|, |%s|", SerwerInfo[sLosowyKod], text);
        if(!strcmp(SerwerInfo[sLosowyKod], text))
        {
            new flowpoints = 5 + random(10);
            GivePlayerFlow(playerid, flowpoints);
            SerwerInfo[sCodeActive] = false;

            new string[128];
            format(string, sizeof(string), "* %s [ID: %d] przepisał najszybciej kod i otrzymał %d punktуw Flow.", PlayerName(playerid), playerid, flowpoints);
            SendClientMessageToAll(-1, string);
        }
    }
All should be okey for me.. maybe someone see the problem? - i changed it only to OnPlayerText callback and go test it again.
Reply


Messages In This Thread
strcmp bad checking or what? - by Riddick94 - 18.08.2011, 19:29
Re: strcmp bad checking or what? - by Riddick94 - 18.08.2011, 20:41
Respuesta: strcmp bad checking or what? - by uprp - 18.08.2011, 21:16
Re: strcmp bad checking or what? - by Riddick94 - 18.08.2011, 22:28
Re: strcmp bad checking or what? - by Gh0sT_ - 18.08.2011, 22:41
Re: strcmp bad checking or what? - by AndreT - 18.08.2011, 22:43
Re: strcmp bad checking or what? - by Riddick94 - 19.08.2011, 11:56
Re: strcmp bad checking or what? - by Riddick94 - 19.08.2011, 12:02
Re: strcmp bad checking or what? - by Riddick94 - 19.08.2011, 12:26
Re: strcmp bad checking or what? - by Riddick94 - 19.08.2011, 13:57

Forum Jump:


Users browsing this thread: 5 Guest(s)