What's new command [Again lol]
#1

Hi, well I'm having troubles with figuring out this command [My friend scripted that for me and he is on vacation so I can't reach him). After adding some lines I received this:



Thanks in advanced!
Reply
#2

At the end of the line 22372 and at the start of the line 22373 remove the >> " << chars. At the end of the line 22384 add
>> ); <<
Reply
#3

Quote:
Originally Posted by Cypress
Посмотреть сообщение
At the end of the line 22372 and at the start of the line 22373 remove the >> " << chars. At the end of the line 22384 add
>> ); <<
Nope, it's not working ;/

PHP код:
COMMAND:whatsnew(playeridparams[])
{
    new 
watsnew1000 ];
    
strcat(watsnew"{89ca25}==============================================================\n");
    
strcat(watsnew"AdvGames RolePlay | The latest changes on the server |  Mafia RolePlay\n");
    
strcat(watsnew"==============================================================\n");
    
strcat(watsnew"{ffffff}- Added two new faction - Ballas and Geonovese \n\
                        - Fixed the delivery company comps system\n\
                        - Changed the color of the faction chat (/f) \n\
                        - Changed the color of the tier 0 in the army\n\
                        - Added mapping all over Los Santos\n\
                        - Changed the spawn point\n\
                        - Changed the Main Bank's interior\n\
                        - Removed house icons from the map\n\
                        - Increased the maximum of /sellhouse\n\
                        - Added more business interiors\n\
                        - Changed map icons into yellow dots \n\
                        - Added text lables upon HQs\n\
                        - Fixed houselocker bug\n"
);
    
strcat(watsnew,     "- Minor bugs fixed \n");
    
ShowPlayerDialog(playerid20DIALOG_STYLE_MSGBOX"AdvGames Community:  Mafia RolePlay - Script Updates",watsnew"Ok""");
    return 
1;

Код:
C:\Users\Amit\Desktop\Test Mafia RolePlay\gamemodes\AdvGames.pwn(22383) : error 075: input line too long (after substitutions)
C:\Users\Amit\Desktop\Test Mafia RolePlay\gamemodes\AdvGames.pwn(22384) : error 037: invalid string (possibly non-terminated string)
C:\Users\Amit\Desktop\Test Mafia RolePlay\gamemodes\AdvGames.pwn(22384) : error 017: undefined symbol "ffffff"
C:\Users\Amit\Desktop\Test Mafia RolePlay\gamemodes\AdvGames.pwn(22384) : error 017: undefined symbol "Added"
C:\Users\Amit\Desktop\Test Mafia RolePlay\gamemodes\AdvGames.pwn(22384) : fatal error 107: too many error messages on one line

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


5 Errors.
Reply
#4

BUMP
Reply
#5

pawn Код:
COMMAND:whatsnew(playerid, params[])
{
    new watsnew[1000];

    strcat(watsnew, "{89ca25}==============================================================\n");
    strcat(watsnew, "AdvGames RolePlay | The latest changes on the server |  Mafia RolePlay\n");
    strcat(watsnew, "==============================================================\n");
    strcat(watsnew, "{ffffff}- Added two new faction - Ballas and Geonovese \n\
                        - Fixed the delivery company comps system\n\
                        - Changed the color of the faction chat (/f) \n\
                        - Changed the color of the tier 0 in the army\n\
                        - Added mapping all over Los Santos\n\
                        - Changed the spawn point\n\
                        - Changed the Main Bank's interior\n"
);
    strcat(watsnew, "- Removed house icons from the map\n\
                        - Increased the maximum of /sellhouse\n\
                        - Added more business interiors\n\
                        - Changed map icons into yellow dots \n\
                        - Added text lables upon HQs\n"
);
    strcat(watsnew, "- Fixed houselocker bug\n");
    strcat(watsnew,     "- Minor bugs fixed \n");

    ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "AdvGames Community:  Mafia RolePlay - Script Updates",watsnew, "Ok", "");
    return 1;
}
This seem to be working.

I think it is probably your the input for strcat is too long? Not sure, but that code above doesn't show any errors.
Reply
#6

try doing it like this:
pawn Код:
strcat(watsnew,"{FFFFFF}-Added two new faction - Ballas and Geonovese \n");
strcat(watsnew,"{FFFFFF}- Fixed the delivery company comps system\n");
//and so on
So In other words, just use strcat() in every line of those. And remove the " \ "s after the " n " character
Reply


Forum Jump:


Users browsing this thread: