19.08.2011, 11:56
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];
All should be okey for me.. maybe someone see the problem? - i changed it only to OnPlayerText callback and go test it again.
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);
}
}