Vip - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vip (
/showthread.php?tid=425006)
Vip -
DerickClark - 24.03.2013
Код:
CMD:setvip(playerid, params[])
{
new playeb, lvl;
if(sscanf(params, "ui", player, lvl)) return SendClientMessage(playerid, -1, "/setvip [playerid] [level]);
Vip[playerb] = lvl;
return 1;
}
Код:
\filterscripts\Vip.pwn(235) : error 017: undefined symbol "player"
\filterscripts\Vip.pwn(235) : error 037: invalid string (possibly non-terminated string)
\filterscripts\Vip.pwn(235) : warning 215: expression has no effect
\filterscripts\Vip.pwn(235) : error 001: expected token: ";", but found "]"
\filterscripts\Vip.pwn(235) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Vip -
LarzI - 24.03.2013
You've declared it as "playeb" - please
read your code before giving up on an error.
Re: Vip -
DerickClark - 24.03.2013
Still don't get it...
Re: Vip -
BigGroter - 24.03.2013
pawn Код:
CMD:setvip(playerid, params[])
{
new playerb, lvl; //playerb, not playeb
if(sscanf(params, "ui", player, lvl)) return SendClientMessage(playerid, -1, "/setvip [playerid] [level]"); // You forgot a quotation mark as well.
Vip[playerb] = lvl;
return 1;
}
Re: Vip -
DerickClark - 24.03.2013
Код:
Vip.pwn(235) : error 017: undefined symbol "player"
Vip.pwn(235) : error 037: invalid string (possibly non-terminated string)
Vip.pwn(235) : warning 215: expression has no effect
Vip.pwn(235) : error 001: expected token: ";", but found "]"
Vip.pwn(235) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Vip -
BigGroter - 24.03.2013
Did you copy my code? Post yours.
Re: Vip -
DerickClark - 24.03.2013
........
Код:
CMD:setvip(playerid, params[])
{
new playerb, lvl;
if(sscanf(params, "ui", player, lvl)) return SendClientMessage(playerid, -1, "/setvip [playerid] [level]);
Vip[playerb] = lvl;
return 1;
}
Re: Vip -
BigGroter - 24.03.2013
pawn Код:
CMD:setvip(playerid, params[])
{
new playerb, lvl;
if(sscanf(params, "ui", playerb, lvl)) return SendClientMessage(playerid, -1, "/setvip [playerid] [level]");
Vip[playerb] = lvl;
return 1;
}
Re: Vip -
DerickClark - 24.03.2013
Still give me errors.
Re: Vip -
Misiur - 24.03.2013
Seriously, just look at your code to spot the typo:
Код:
sscanf(params, "ui", playerb, lvl)
Also there is missing quote, as @2up showed you.