Command /help in dialog
#4

Quote:
Originally Posted by Kitten
Посмотреть сообщение
pawn Код:
new string[128];
strcat(string,"Line 1\nLine2\nLine3\nLine4\nLine5\nLine6\nLine7\nand so on");
ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_MSGBOX,"Commands",string,"Close","");
EDIT:

Dubya why are you using the callback OnDialogResponse when it's just showing a message it's not responding to anything.
I did like you said and i got this warning:
Код:
E:\WaLLa\Toxic Gaming v1.0.0\gamemodes\CLRP.pwn(51884) : warning 219: local variable "string" shadows a variable at a preceding level
Here is my command:
Код:
if(strcmp(cmd, "/hhhelp", true) == 0 || strcmp(cmd, "/kkkkomande", true) == 0)
    {
	    if(IsPlayerConnected(playerid))
	    {
	        new string[256];
			strcat(string,"-VAS NALOG- /rules(pravila) /stats /kupilevel /upgrade\n-GENERALNO- /pay /charity /time /kupi /unrentcar /pice /pokazidozvole /kupiodjecu /fuel /v\n-GENERALNO- /resetupgrades(100k) /oruzje /lock /skill /portable /dozvole /spawnchange /mo\n-GENERALNO- /report /cancel /prihvati /eject /usedrugs /contract /fill /fillcar /clear /service /pl /le\n-CHAT- (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise (/f)amily /me\n-BANKA- /balance /withdraw /deposit /wiretransfer");
			ShowPlayerDialog(playerid,1061,DIALOG_STYLE_MSGBOX,"KOMANDE SERVERA",string,"Izlaz","");
	    }
	    return 1;
	}
Reply


Messages In This Thread
Command /help in dialog - by fury14 - 27.07.2012, 22:50
Re: Command /help in dialog - by Dubya - 27.07.2012, 22:54
Re: Command /help in dialog - by Kitten - 27.07.2012, 22:55
Re: Command /help in dialog - by fury14 - 27.07.2012, 23:25
Re: Command /help in dialog - by Kitten - 27.07.2012, 23:45
Re: Command /help in dialog - by fury14 - 27.07.2012, 23:52
Re: Command /help in dialog - by Kitten - 27.07.2012, 23:58
Re: Command /help in dialog - by fury14 - 28.07.2012, 00:09
Re: Command /help in dialog - by Kitten - 28.07.2012, 02:15
Re: Command /help in dialog - by Devilxz97 - 28.07.2012, 03:29

Forum Jump:


Users browsing this thread: 2 Guest(s)