19.04.2014, 13:03
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.
I don't know what's wrong.
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;
}
Код:
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.