Jump to content
  • 0

problema fast event



1.deci am sistemu de fast event pentru rpg

deci imi apare cine sa scrie primu

dar scriu

si nu merge

nu imi zice ca x a scris primu si a castigat si nici nu da bani

nu se intampla nimic

din ce cauza

function xReactionTest()
            xLength = (random(8) + 2),
    xCash = (random(10000) + 50000);
    format(xChars, sizeof(xChars), "");
    Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);
    format(string, sizeof(string), "« Cine scrie primu %s castiga $%d banii. »", xChars, xCash);
    SendClientMessageToAll(PURPLE, string);
    xTestBusy = true;
    SetTimer("xReactionProgress", 30000, 0);
return 1;
            case true:
                if(!strcmp(xChars, text, false))
                            new pName[MAX_PLAYER_NAME];
                            GetPlayerName(playerid, pName, sizeof(pName));
                            format(string, sizeof(string), "« \%s\" a castigat fast event-ul. »", pName);
                            SendClientMessageToAll(GREEN, string);
                            format(string, sizeof(string), "« Ai câstigat $%d banii. »", xCash);
                            SendClientMessage(playerid, GREEN, string);
                            GivePlayerCash(playerid, xCash);
                            xReactionTimer = SetTimer("xReactionTest", TIME, 1);
                            xTestBusy = false;

edit, am rezolvat

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.