Command Error
#1

Hello, I got an error with my /updates command.

Quote:
Originally Posted by Compiler
C:\Users\Shaun\Desktop\Scripting\Scripting\gamemod es\hrp.pwn(17254 -- 17261) : error 075: input line too long (after substitutions)
C:\Users\Shaun\Desktop\Scripting\Scripting\gamemod es\hrp.pwn(17262) : warning 217: loose indentation
C:\Users\Shaun\Desktop\Scripting\Scripting\gamemod es\hrp.pwn(17262) : error 017: undefined symbol "can"
C:\Users\Shaun\Desktop\Scripting\Scripting\gamemod es\hrp.pwn(17262) : error 017: undefined symbol "now"
C:\Users\Shaun\Desktop\Scripting\Scripting\gamemod es\hrp.pwn(17262) : error 017: undefined symbol "give"
C:\Users\Shaun\Desktop\Scripting\Scripting\gamemod es\hrp.pwn(17262) : fatal error 107: too many error messages on one line

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


5 Errors.
pawn Код:
CMD:updates(playerid, params[])
{
    return ShowPlayerDialogEx(playerid, DIALOG_MESSAGE, DIALOG_STYLE_MSGBOX, VERSION,
        "* Admins can now give players a mask.\n\
        * Added a House furniture system with 0.3e editing system.\n\
        * Added a hunger system\n\
        * Added a drive thru system which works with the hunger system.\n\
        * Admins can now /warn players, 3 warnings will admin jail the player and 5 warnings will ban the player.\n\
        * Admins can now use /setpos which works similar to /gotoint, but does not have an interior paramater.\n\
        * Admins can now get a vehicle to their location.\n\
        * Level 5 Admins can now toggle /admins for normal players.\n\
        * Players can no longer /pm the Train_Driver bot.\n\
        * Factions leaders can now toggle the (/f)action channel with /fooc.\n\
        * Police Officers can now suspend a driving license for a certain amount of minutes.\n\
        * Added /getip for level 2+ admins which will return the players IP address and country."
,
        "Close",
        "");
}
Reply
#2

Use strcat.
Reply
#3

Alright, I'll give it a go, I'll let you know if it works or not.
Reply
#4

Try This :-
pawn Код:
CMD:updates(playerid, params[])
{
    return ShowPlayerDialogEx(playerid, DIALOG_MESSAGE, DIALOG_STYLE_MSGBOX, VERSION,
        "* Admins can now give players a mask.
        \n* Added a House furniture system with 0.3e editing system.
        \n* Added a hunger system
        \n* Added a drive thru system which works with the hunger system.
        \n* Admins can now /warn players, 3 warnings will admin jail the player and 5 warnings will ban the player.
        \n* Admins can now use /setpos which works similar to /gotoint, but does not have an interior paramater.
        \n* Admins can now get a vehicle to their location.
        \n* Level 5 Admins can now toggle /admins for normal players.
        \n* Players can no longer /pm the Train_Driver bot.
        \n* Factions leaders can now toggle the (/f)action channel with /fooc.
        \n* Police Officers can now suspend a driving license for a certain amount of minutes.
        \n* Added /getip for level 2+ admins which will return the players IP address and country."
,
        "Close",
        "");
}
Using "strcat"(s) :-
pawn Код:
CMD:updates(playerid, params[])
{
    new dialogstring[952];
    strcat(dialogstring, "Admins can now give players a mask.");
    strcat(dialogstring, "Added a House furniture system with 0.3e editing system.");
    strcat(dialogstring, "Added a hunger system");
    strcat(dialogstring, "Added a drive thru system which works with the hunger system.");
    strcat(dialogstring, "Admins can now /warn players, 3 warnings will admin jail the player and 5 warnings will ban the player.");
    strcat(dialogstring, "Admins can now use /setpos which works similar to /gotoint, but does not have an interior paramater.");
    strcat(dialogstring, "Admins can now get a vehicle to their location.");
    strcat(dialogstring, "Level 5 Admins can now toggle /admins for normal players.");
    strcat(dialogstring, "Players can no longer /pm the Train_Driver bot.");
    strcat(dialogstring, "Factions leaders can now toggle the (/f)action channel with /fooc.");
    strcat(dialogstring, "Police Officers can now suspend a driving license for a certain amount of minutes.");
    strcat(dialogstring, "Added /getip for level 2+ admins which will return the players IP address and country.");
    ShowPlayerDialogEx(playerid, DIALOG_MESSAGE, DIALOG_STYLE_MSGBOX, VERSION, dialogstring, "Close", "");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)