VIP Command - Multipe Errors
#1

Hello,

I was editing the xVIP,because i wanted to remove some commands and there are some errors..
Here are the definitions:
Код:
#define Grey                        0xC0C0C0FF
#define COLOR_YELLOW2               0xF5DEB3AA
#define COLOR_NICERED               0xFF0000FF
#define COLOR_SUPERGREEN 0xFF01FF
#define COLOR_MODRA 0x0088FFFF
#define xBox                DIALOG_STYLE_MSGBOX
#define COLOR_HNEDA 0x993300AA
#define COLOR_0000 0x0000FFAA
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define Vcmds		  ShowPlayerDialog
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_PURPLE 0x9900FFAA
#define COL_OGREEN         "{FFAF00}"
#define COL_ERROR          "{FF0202}"
#define COL_USAGE          "{DFDFDF}"
#define TAG[SRC]           "{FFBF00}"
#define COL_EASY           "{FFF1AF}"
#define COL_WHITE          "{FFFFFF}"
#define COL_BLACK          "{0E0101}"
#define COL_GREY           "{C3C3C3}"
#define V.I.PCmds           26
#define COL_GREEN          "{6EF83C}"
#define COL_RED            "{F81414}"
#define COL_YELLOW         "{F3FF02}"
#define COL_ORANGE         "{FFA1A1}"
#define COL_INDIGO         "{8B008B}"
#define COL_LIME           "{B7FF00}"
#define COL_CYAN           "{00FFEE}"
#define COL_LIGHTBLUE      "{C9FFAB}"
#define CLB      		   "{FFAF00}"
#define COL_BLUE           "{0049FF}"
#define COL_MAGENTA        "{F300FF}"
#define COL_VIOLET         "{B700FF}"
#define COL_PINK           "{FF00EA}"
#define COL_MARONE         "{A90202}"
#define COL_CMD            "{B8FF02}"
#define COL_PARAM          "{3FCD02}"
#define COL_SERVER         "{AFE7FF}"
#define COL_VALUE 		   "{FF8E02}"
#define COL_RULE  	   	   "{FFDE02}"
#define COL_RULE2 		   "{FBDF89}"
#define COL_RWHITE 		   "{FFFFFF}"
#define COL_LGREEN         "{C9FFAB}"
#define COL_LRED           "{FFA1A1}"
#define COL_BRONZE         "{FF4101}"
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_LRED2          "{C77D87}"
#define SERVER 			   "{0E0101}[{AFE7FF}SERVER{0E0101}]{FFFFFF}:"
#define COL_TRASH          "{ACD59D}"
#define COLOR_BROWN 0x993300AA
#define COLOR_ORANGE 0xFF9933AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define Bronze String1
#define Silver String2
#define Gold String3
#define XVcmds StringF
#define COLOR_BLACK 0x000000AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GAMES 0xFFFFFFAA
#define blue 0x375FFFFF
#define red 0xFF0000AA
#define green 0x33FF33AA
#define yellow 0xFFFF00AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIME 0x99FF00AA
#define COLOR_LIGHTYELLOW 0xFAEAA9FF
#define COLOR_LIGHTGREEN 0x5BC476FF
#define COLOR_LIGHTORANGE 0xF7A26FFF
#define PATH "/Users/%s.ini"
#define COLOR_LIGHTRED 0xFF6A6AFF
#define COLOR_VIP 0xDDD100FF
#define MAX_FAIL_LOGINS 3
Here is the command:
Код:
//=========================================
CMD:vcmds(playerid, params[])
{
if (Vip[playerid] >= 1)
{
new Bronze[]="{FF4101}Bronze VIP Commands\n\
/vips {FFFFFF}-Shows the online VIP players\n\
/vheli {FFFFFF}-Spawns the VIP Helicopter\n\
/vboat {FFFFFF}- Spawns the VIP Boat\n\
/vplane {FFFFFF}- Spawns the VIP Airplane\n\
/vheal {FFFFFF}- Fulls your Health bar\n\
/varmour {FFFFFF}- Fulls your Armour bar\n\
/vnos {FFFFFF}- Adds Nitro to your vehicle\n\
/vcolor {FFFFFF}- Changes your list colour with the defined VIP\n\
/vtunecmds {FFFFFF}- Displays the tune commands\n\                                //970
/vtune {FFFFFF}- Tunes your vehicle with the defined tunes\n\                    //971
/vuntune {FFFFFF}- Removes every tune from your vehicle\n\n\n\n",


Silver[]="{FA0404}Silver VIP Commands\n\
All the Bronze VIP Features plus:\n\
/vskin {FFFFFF}- Changes your skin\n\
/visland {FFFFFF}- Teleports you to the VIP Island\n\
/vsay {FFFFFF}- Says what you wrote as an server VIP \n\
/vdick {FFFFFF}- Adds the well-known Dildo toyn\n\n\n",


Gold[]="{0xF7A26FFF}Gold VIP Commands\n\
All of the Bronze and Silver VIP features plus:\n\
/vannounce {FFFFFF}- Announces what you wrote as an server VIP\n\
/vshop {FFFFFF}- Opens the VIP Shop Dialogue\n\
/vfeature {FFFFFF}- Displays the VIP Features\n\
/vgodcar {FFFFFF}- Makes your car invunerable\n\n\n\
{FFFFFF}Use /vc For VIP Chat\n",

Plantinum[]="{0xF7A26FFF}Plantinum VIP Commands\n\
-Personal Exotic Car                    \n\
-Custom Mapped House                    \n\
-Priority on /report                    \n\
-500.000 Virtual Cash (In-game)         \n\n\n\
{FFFFFF}Use /vc for the VIP Chat\n\
{FFFFFF}Please read the VIP Rules dialogue (/viprules)\n\
{FFFFFF}For more information visit our website:" ,

XVcmds[1600];
format( XVcmds, sizeof XVcmds, "%s%s%s%s%s", Bronze, Silver, Gold , Plantinum);
Vcmds(playerid, V.I.PCmds, xBox, "V.I.P Commands", XVcmds, "OK", "" );
}
return 1;
}
These are my errors:
Код:
(970) : error 075: input line too long (after substitutions)
(971) : error 037: invalid string (possibly non-terminated string)
(971) : error 017: undefined symbol "FF4101"
(971) : warning 217: loose indentation
(971) : error 017: undefined symbol "Bronze"
(971) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Also,any idea how can i change this from "vcmds" to "vipcommands"??

Thanks in advance!!

Best Regards,
George
Reply
#2

Which line is 970 and 971 ?
Reply
#3

a lack color the other missing letters ex: {FFFFFF} and {FFFF} so this
Reply
#4

/vtunecmds {FFFFFF}- Displays the tune commands\n\ //970
/vtune {FFFFFF}- Tunes your vehicle with the defined tunes\n\ //971

i commented them in the script
Reply
#5

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
a lack color the other missing letters ex: {FFFFFF} and {FFFF} so this
nothing changes :S
Reply
#6

anyone?
Reply
#7

Try replacing the ',' in:
pawn Код:
/vuntune {FFFFFF}- Removes every tune from your vehicle\n\n\n\n",
with a ;

So you end up with:
pawn Код:
/vuntune {FFFFFF}- Removes every tune from your vehicle\n\n\n\n";
Do this with these lines as well:
pawn Код:
/vdick {FFFFFF}- Adds the well-known Dildo toyn\n\n\n",
{FFFFFF}Use /vc For VIP Chat\n"
,
{FFFFFF}For more information visit our website: www.sfr-ro.com" ,
Your code should be:
pawn Код:
CMD:vcmds(playerid, params[])
{
    if (Vip[playerid] >= 1)
    {
        new Bronze[]="{FF4101}Bronze VIP Commands\n\
        /vips {FFFFFF}-Shows the online VIP players\n\
        /vheli {FFFFFF}-Spawns the VIP Helicopter\n\
        /vboat {FFFFFF}- Spawns the VIP Boat\n\
        /vplane {FFFFFF}- Spawns the VIP Airplane\n\
        /vheal {FFFFFF}- Fulls your Health bar\n\
        /varmour {FFFFFF}- Fulls your Armour bar\n\
        /vnos {FFFFFF}- Adds Nitro to your vehicle\n\
        /vcolor {FFFFFF}- Changes your list colour with the defined VIP\n\
        /vtunecmds {FFFFFF}- Displays the tune commands\n\                               //970
        /vtune {FFFFFF}- Tunes your vehicle with the defined tunes\n\                   //971
        /vuntune {FFFFFF}- Removes every tune from your vehicle\n\n\n\n"
;


        new Silver[]="{FA0404}Silver VIP Commands\n\
        All the Bronze VIP Features plus:\n\
        /vskin {FFFFFF}- Changes your skin\n\
        /visland {FFFFFF}- Teleports you to the VIP Island\n\
        /vsay {FFFFFF}- Says what you wrote as an server VIP \n\
        /vdick {FFFFFF}- Adds the well-known Dildo toyn\n\n\n"
;


        new Gold[]="{F7A26F}Gold VIP Commands\n\
        All of the Bronze and Silver VIP features plus:\n\
        /vannounce {FFFFFF}- Announces what you wrote as an server VIP\n\
        /vshop {FFFFFF}- Opens the VIP Shop Dialogue\n\
        /vfeature {FFFFFF}- Displays the VIP Features\n\
        /vgodcar {FFFFFF}- Makes your car invunerable\n\n\n\
        {FFFFFF}Use /vc For VIP Chat\n"
;

        new Plantinum[]="{F7A26F}Plantinum VIP Commands\n\
        -Personal Exotic Car                    \n\
        -Custom Mapped House                    \n\
        -Priority on /report                    \n\
        -500.000 Virtual Cash (In-game)         \n\n\n\
        {FFFFFF}Use /vc for the VIP Chat\n\
        {FFFFFF}Please read the VIP Rules dialogue (/viprules)\n\
        {FFFFFF}For more information visit our website: www.sfr-ro.com"
;

        XVcmds[1600];
        format( XVcmds, sizeof XVcmds, "%s%s%s%s%s", Bronze, Silver, Gold , Plantinum);
        Vcmds(playerid, V.I.PCmds, xBox, "V.I.P Commands", XVcmds, "OK", "" );
    }
    return 1;
}
If that doesn't work, try using strcat functions.

https://sampwiki.blast.hk/wiki/strcat
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)