Very Little Help
#1

how can i increase size of
Код:
ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST
when i put more words in line its giving errors :
Reply
#2

Should have searched first. I just searched, and found this:

pawn Код:
new string[1024];
format(string, sizeof(string), "Item1\r\nItem2\r\nItem3");
ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Title", string, "Click", "Close");
This is just an example the dude had, change it to what you want. Should work, untested, of course. Lower the string size down if it's not a huge string like in the thread I got this from.
Reply
#3

Warning

Код:
E:\Samp Servers\My Uploadu Server 0.3E\gamemodes\twin.pwn(5432) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           4976 bytes
Code size:          2619832 bytes
Data size:           411428 bytes
Stack/heap size:      16384 bytes; estimated max. usage=7007 cells (28028 bytes)
Total requirements: 3052620 bytes

1 Warning.
My Code :


Код:
if (strcmp("/hold", cmdtext, true, 10) == 0)
    {
    new msg[1024];
    format(msg, sizeof(msg), "Item1\r\nItem2\r\nItem3");
    ShowPlayerDialog(playerid, 200, DIALOG_STYLE_LIST, "{2E6E09}Attachbale Objects", "{D7E01B}/Ymarker\n{D7E01B}/Mixy\n{D7E01B}/Shark\n{D7E01B}/Jelly\n{D7E01B}/Police\n{1B59E0}/Basketball\n{1B59E0}/Spark\n{1B59E0}/Fireex\n{1B59E0}/Teargas\n{1B59E0}/Uncredebale\n{1B59E0}/Dragon\n{1B59E0}/Flowra\n{E01B32}/Richman\n{E01B32}/Checkin\n{E01B32}/Sprunk\n{E01B32}/glassball\n{E01B32}/Dildo\n/icebreeze\n/Light\n/{E01B32}Egg\n/Burnme\n/Beachball\n/Santa\n/Cone\n/waterball\nRemove Object", msg, "Select", "Close");
    GameTextForAll("~r~/hold", 4000, 5);
	return 1;
    }
Reply
#4

use strcat
like
pawn Код:
if (strcmp("/hold", cmdtext, true, 10) == 0)
    {
    new msg[256],string[1024];
    format(msg, sizeof(msg), "{D7E01B}/Ymarker\n{D7E01B}/Mixy\n{D7E01B}/Shark\n{D7E01B}/Jelly\n{D7E01B}/Police\n{1B59E0}/Basketball\n");
strcat(string,msg,sizeof(string));
    format(msg, sizeof(msg), "{1B59E0}/Spark\n{1B59E0}/Fireex\n{1B59E0}/Teargas\n{1B59E0}/Uncredebale\n{1B59E0}/Dragon\n{1B59E0}/Flowra\n");
strcat(string,msg,sizeof(string));
    format(msg, sizeof(msg), "{E01B32}/Richman\n{E01B32}/Checkin\n{E01B32}/Sprunk\n{E01B32}/glassball\n{E01B32}/Dildo\n/icebreeze\n/Light\n");
strcat(string,msg,sizeof(string));
    format(msg, sizeof(msg), "/{E01B32}Egg\n/Burnme\n/Beachball\n/Santa\n/Cone\n/waterball\nRemove Object");
strcat(string,msg,sizeof(string));
    ShowPlayerDialog(playerid, 200, DIALOG_STYLE_LIST, "{2E6E09}Attachbale Objects", string, "Select", "Close");
    GameTextForAll("~r~/hold", 4000, 5);
    return 1;
    }
Reply
#5

Edit : i solve it : thnx niko and k
repu+ added
Reply
#6

do the pawn file get compiled in pawno ?
do u see
only this line
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#7

no you put " to time in 2 lines

i remove one "

this is correct one

Код:
"{1B59E0}/Spark\n{1B59E0}/Fireex\n{1B59E0}/Teargas\n{1B59E0}/Uncredebale\n{1B59E0}/Dragon\n{1B59E0}/Flowra\n");
and this is wrong one

Код:
""{1B59E0}/Spark\n{1B59E0}/Fireex\n{1B59E0}/Teargas\n{1B59E0}/Uncredebale\n{1B59E0}/Dragon\n{1B59E0}/Flowra\n");
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)