Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

please solve this error 001

$
0
0
I was trying to make someone can't get in the vehicle when he/she injured (for RP server)
and i found this error.
please fix this.

Code:

        if(IsKeyJustDown(KEY_SECONDARY_ATTACK, newkeys, oldkeys))
        {
            if(GetPVarInt(playerid, "NGPassenger") == 1)
            {
                TogglePlayerSpectating(playerid, 0);
                }
                if(GetPVarInt(playerid, "UsingSprunk"))
                {
                        DeletePVar(playerid, "UsingSprunk");
                        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
                        }
                if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT || GetPVarInt(playerid, "Injured" == 1) // line 20111
                {
                        ApplyAnimation(playerid, "ped", "KO_skid_front", 4.0, 0, 1, 1, 1, 0, 1);
                        return 1;
                }
        }

Code:

AGRP.TMP(20111) : error 001: expected token: "-string end-", but found "-identifier-"
*Note: I am using PawnoX to script.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>