Jump to content

Question

Posted

Salutare sa-mp.ro am si eu o problema la setvip imi da un warning:

[pawn]C:\Stefan\es\gamemodes\ES.pwn(1387) : error 017: undefined symbol "level"[/pawn]

aici este comanda

[pawn]CMD:setvip(playerid, params[ ])

{

    if(P_DATA[playerid][Admin] >= 10 || IsPlayerAdmin(playerid))

    {

        new target;

        new level;

        if(sscanf(params, "ui", target, level)) return SCM(playerid, red, "USAGE: /setvip [playerid] [level]");

        if(!IsPlayerConnected(target)) return SCM(playerid, red, "[ERROR]: {FFFFFF}Player not connected.");

        if(level < 0 || level > 3) return SCM(playerid, red, "ERROR:Invalid level. (1-4)");

        }

        P_DATA[playerid][Vip] = level;

        return 1;

    }[/pawn]

iar aici linia :

[pawn]P_DATA[playerid][Vip] = level;[/pawn]

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.