Really quick answer needed, easy thing but I just don't get it
#1

So i'm trying to get something called "auto-crack" working on a blank script ("falling down" when player's HP is under x amount).

And this is the only error I get. I already got fixed a similar error before with a friend's advices, but this one won't just fix up with that way. >.<
pawn Код:
C:\Users\Joni\Desktop\SA-MP Server\gamemodes\fortesting.pwn(75) : error 028: invalid subscript (not an array or too many subscripts): "GetTickCount"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
And here's the code that is bugging out:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/getup", cmdtext, true, 6) == 0)
    {
    if ((GetTickCount() - g_tCrackTick[playerid] > 15000) //This is 74th line
    {
    ApplyAnimation(playerid,"PED","getup_front",5.0,0,1,1,1,1,1);
    TogglePlayerControllable(playerid, false);
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFFF, " Error: You're not auto-cracked or you cannot get up yet! ");
    }
    return 1;
}
Nothing hard but I just don't get it. Of course when it's easy thing it never comes up in your mind, same thing with lost keys!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)