strval returning 0 :(
#1

pawn Code:
if(dialogid == 5)
    {
      GetPlayerPos(ClickedPlayer[playerid], x[playerid], y[playerid], z[playerid]);
        Cage0[playerid] = CreateObject(985, x[playerid], y[playerid]+4, z[playerid], 0.0, 0.0, 0.0);
    Cage1[playerid] = CreateObject(985, x[playerid]+4, y[playerid], z[playerid], 0.0, 0.0, 90.0);
    Cage2[playerid] = CreateObject(985, x[playerid]-4, y[playerid], z[playerid], 0.0, 0.0, 270.0);
    Cage3[playerid] = CreateObject(985, x[playerid], y[playerid]-4, z[playerid], 0.0, 0.0, 180.0);
    Caged[playerid] = 1;
    new time = strval(inputtext);
    SetTimerEx("Uncage", false, 60000*time, "i", playerid);
    TogglePlayerControllable(playerid, 1);
        new string[128];
        format(string, sizeof(string), "Administrator %s has caged %s for %d minutes.", adminname, name, time);
        return 1;
    }
That's under OnDialogResponse, and it seems strval instantly returns 0 no matter what I put in. Why?
Reply


Messages In This Thread
strval returning 0 :( - by biltong - 08.04.2010, 14:01
Re: strval returning 0 :( - by dice7 - 08.04.2010, 14:54
Re: strval returning 0 :( - by Joe Staff - 08.04.2010, 16:01
Re: strval returning 0 :( - by biltong - 08.04.2010, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)