dialog help
#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.
Код:
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;
}
Reply
#2

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!!
Reply
#3

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.
Reply
#4

im at school, did this at school , gota go now
add my xfireatchkinson
and il help you when i get home ok?
cya!
Reply
#5

ok
Reply
#6

i get error on this line

ShowPlayerDialog(playerid, DIALOG_BASE + 2, DIALOG_STYLE_LIST, "Vieta", "spawn\sf", "teleportuotis", "cancel");
Reply
#7

thanks
Reply
#8

mhm how i can add more names to select?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)