SA-MP Forums Archive
[FIXED]Quick Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [FIXED]Quick Problem (/showthread.php?tid=203121)



[FIXED]Quick Problem - Sledge - 26.12.2010

pawn Код:
if(dialogid == 19)
    {
        if(response)
        {
            new freq = strval(inputtext);
            if (freq >= 1000 && freq <= 9500)
            {
                new string[128];
                PlayerInfo[playerid][pRadioFreq] = strval(inputtext);
                format(string, sizeof(string), "INFO: Frequency set to %d GHz", inputtext);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "ERROR: Your frequency must be between 1000 GHz and 9000 GHz.");
            }
        }
    }
When I enter frequencies less than 1k, and more than 9.5k it tells me what I did wrong. If I do it right, nothing happens like it should.