Couple of errors.
#1

I'm not sure what to do here, but I guess you guys can help.

I wrote this line of code by myself, after using Y_INI login/register tutorial.

pawn Код:
enum PlayerInfo
{
    Pass[129],
    Adminlevel,
    VIPlevel,
    Money,
    Scores,
    Kills,
    Deaths
}


new pInfo[MAX_PLAYERS][PlayerInfo];

CMD:skin(playerid, params[])
{
  new string[128], skinid;
  if (pInfo[playerid][VIPLevel] >= 1)
  {
        if(sscanf(params, "d", skinid)
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /skin [skinID]");
        }
        else
        {
            SetPlayerSkin(playerid, skinid);
            format(string, sizeof(string), "You have set your skin ID to %d", skinid);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        }
        else
        {
        SendClientMessage(playerid, COLOR_GOLD, "Only Donators can use this command!");
        }
  }
  return 1;
}
I don't know what's wrong.
Код:
C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(202) : error 017: undefined symbol "VIPLevel"
C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(205) : error 001: expected token: ")", but found "{"
C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(214) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
Couple of errors. - by Cena44 - 19.04.2014, 13:03
Re: Couple of errors. - by PrivatioBoni - 19.04.2014, 13:10
Re: Couple of errors. - by Cena44 - 19.04.2014, 13:13
Re: Couple of errors. - by Konstantinos - 19.04.2014, 13:16
Re: Couple of errors. - by Cena44 - 19.04.2014, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)