Need Some Help
#1

Hi guys,I Put Reaction Test On My GM And It Doesn't Work Even It's A True Answer Can You Help Me? I Think The Problem Is At OnPlayerText So This Is The Script
P/S:Sorry For Bad English
PHP код:
public OnPlayerText(playeridtext[])
{
    if(
Enable && text[0] && Answer == strval(text))
    {
        new 
string[218];
        
Enable false;
        
format(stringsizeof(string),""Red"[MATH]%s[%d] "Blue"Answered The Right Answer Of Math Quiz | "Red"REWARD: +%d XP & $%d!"IsPlayerName(playerid), playeridEXPCash);
        
SendClientMessageToAll(-1string);
        
GivePlayerMoney(playeridCash);
           
SetPlayerScore(playeridGetPlayerScore(playerid) + EXP);
        
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
        return 
0;
    }
    switch (
TestBusy)
    {
        case 
true:
        {
            if(!
strcmp(Charstextfalse))
            {
                new 
string[218];
                
format(stringsizeof(string), ""Red"[REACTION]%s[%d] "Blue"Has Won The Reaction Test | "Red"REWARD: +%d XP & $%d!"IsPlayerName(playerid), playeridEXPCash);
                
SendClientMessageToAll(0xADFF2FFFstring);
                
GivePlayerMoney(playeridCash);
                
SetPlayerScore(playeridGetPlayerScore(playerid) + EXP);
                
ReactionTimer SetTimer("ReactionTest"600001);
                
TestBusy false;
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Need Some Help - by dh240473 - 09.12.2015, 13:22
Re: Need Some Help - by Denying - 09.12.2015, 13:46
Re: Need Some Help - by MicroKyrr - 09.12.2015, 13:48
Re: Need Some Help - by dh240473 - 09.12.2015, 14:44
Re: Need Some Help - by Denying - 10.12.2015, 05:03
Re: Need Some Help - by SickAttack - 10.12.2015, 05:45

Forum Jump:


Users browsing this thread: 2 Guest(s)