dialog help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dialog help (
/showthread.php?tid=112788)
dialog help -
Mantas7776 - 10.12.2009
Код:
C:\Users\Vip\Downloads\samp03asvr_R3_win32\gamemodes\GamemodeByMantas7776.pwn(155) : error 027: invalid character constant
C:\Users\Vip\Downloads\samp03asvr_R3_win32\gamemodes\GamemodeByMantas7776.pwn(155) : error 027: invalid character constant
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) //the callback
{
if (dialogid == DIALOG_BASE + 2) //checking dialogid
{
if (response == 1) //warp has been pressed
{
switch (listitem) //a switch, not going to explain it here
{
case 0:SendClientMessage(playerid, 0xFFFFFFFF, "Sekmingai nusiteleportavai"); //if (listitem == 0) Set...
case 1:SendClientMessage(playerid, 0xFFFFFFFF, "Sekmingai nusiteleportavai"); //if (listitem == 1) Set...
}
SendClientMessage(playerid, 0xFFFFFFFF, "Sekmingai nusiteleportavai"); //a message to confirm the warp
}
else //pressed cancel
{
SendClientMessage(playerid, 0xFFFFFFFF, "Teleportavimasis atsauktas"); //confirmation of declination
}
return 1; //returns 1, it has been handled
}
return 0;
}
Re: dialog help -
patchkinson - 10.12.2009
On your script do Control+F and Search for dialogresponse
Keep finding the next thing with dialogresponse and when you find it just erase it, dont erase yours though
Simple as that!!
Re: dialog help -
Mantas7776 - 10.12.2009
ok i have 2 errors here :
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/menu", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOG_BASE + 2, DIALOG_STYLE_LIST, "Vieta", "spawn\sf", "teleportuotis", "cancel");
return 1;
}
Код:
C:\Users\Vip\Downloads\samp03asvr_R3_win32\gamemodes\GamemodeByMantas7776.pwn(155) : error 027: invalid character constant
C:\Users\Vip\Downloads\samp03asvr_R3_win32\gamemodes\GamemodeByMantas7776.pwn(155) : error 027: invalid character constant
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: dialog help -
patchkinson - 10.12.2009
im at school, did this at school , gota go now
add my xfire
atchkinson
and il help you when i get home ok?
cya!
Re: dialog help -
Mantas7776 - 10.12.2009
ok
Re: dialog help -
Mantas7776 - 10.12.2009
i get error on this line
ShowPlayerDialog(playerid, DIALOG_BASE + 2, DIALOG_STYLE_LIST, "Vieta", "spawn\sf", "teleportuotis", "cancel");
Re: dialog help -
Mantas7776 - 10.12.2009
thanks
Re: dialog help -
Mantas7776 - 10.12.2009
mhm how i can add more names to select?