a weird error.
#10

Quote:
Originally Posted by GaByM
Посмотреть сообщение
You have forgot the "\" after the first line. But this won't solve the problem because lines in PAWN can't have more than 512 characters even though you split them.

PHP код:
ShowPlayerDialog(playeridDIALOG_WELCOMEDIALOG_STYLE_MSGBOX"Notice",
        
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
,
        
"Close""");
//This will produce an error. 
So the single way of sending a long message will be to create a variable and then use strcat a few times

PHP код:
    new str[500];
    
strcat(str"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
    
strcat(str"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
    
strcat(str"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
    
strcat(str"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
    
strcat(str"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
    
strcat(str"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
    
ShowPlayerDialog(playeridDIALOG_WELCOMEDIALOG_STYLE_MSGBOX"Notice"str"Close"""); 
Thanks bro, ik its a late reply, however, how do i use the admin levels for this way? it isnt working properly, i've tried 2-4 ways but couldn't get it working. any help here also?

PHP код:
    new str[200]; 
     if(
AccInfo[playerid][Level] == 0)
    
strcat(str"Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney"); 
    
ShowPlayerDialog(playerid12DIALOG_STYLE_MSGBOX"Server Commands"str"Close""");
    new 
str2[500];
    if(
AccInfo[playerid][Level] == 1)
    
strcat(str2"Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney"); 
    
strcat(str2"\nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin");
    
ShowPlayerDialog(playerid13DIALOG_STYLE_MSGBOX"Server Commands"str2"Close""");
    new 
str3[500];
    if(
AccInfo[playerid][Level] == 2)
    
strcat(str3"Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney"); 
    
strcat(str3"\nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin");
    
strcat(str3"\nAdmin Level 2 Commands: \njailed, frozen, muted, mute, unmute, slap, akill");
    
ShowPlayerDialog(playerid14DIALOG_STYLE_MSGBOX"Server Commands"str3"Close"""); 
^^^This doesnt works^^^

PHP код:
    if(AccInfo[playerid][Level] == 0)
    
strcat(str"Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney"); 
    if(
AccInfo[playerid][Level] == 1)
    
strcat(str"Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney"); 
    
strcat(str"\nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin");
    if(
AccInfo[playerid][Level] == 2)
    
strcat(str"Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney"); 
    
strcat(str"\nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin");
    
strcat(str"\nAdmin Level 2 Commands: \njailed, frozen, muted, mute, unmute, slap, akill");
 
    
ShowPlayerDialog(playerid12DIALOG_STYLE_MSGBOX"Server Commands"str"Close"""); 
^^^This doesnt works either^^^
Reply


Messages In This Thread
a weird error. -Solved. - by TahaMhr - 22.09.2017, 13:56
Re: a weird error. - by Kraeror - 22.09.2017, 15:30
Re: a weird error. - by TahaMhr - 22.09.2017, 16:30
Re: a weird error. - by GaByM - 22.09.2017, 16:36
Re: a weird error. - by TahaMhr - 22.09.2017, 20:01
Re: a weird error. - by 10MIN - 23.09.2017, 07:53
Re: a weird error. - by TahaMhr - 23.09.2017, 10:30
Re: a weird error. - by Kampott - 23.09.2017, 12:26
Re: a weird error. - by GaByM - 23.09.2017, 16:52
Re: a weird error. - by TahaMhr - 27.09.2017, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)