SA-MP Forums Archive
Guys i need 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)
+--- Thread: Guys i need help (/showthread.php?tid=543400)



Guys i need help - Dezzzy - 26.10.2014

hey guys .. i wanted to make fast Teleport CMD with showplayer dialog .. i did it and when i want compile pawno is stop working can u tell me whati have wrong .

Код HTML:
	if(dialogid == 20322 && response)
	{
	 switch(listitem
	  {
	  case 0:
	  {
	  ShowPlayerDialog(playerid, 20323, DIALOG_STYLE_LIST, "Teleport", "Vinewood\nSpawn\nMtavroba", "Tele", "Exit");
	  }
	}
  }
   if(dialogid == 20323 && response)
   {
	switch(listitem)
	{
	 case 0;
	 {
	 SetPlayerPos(playerid, 1510.0826,-848.4471,65.5869);
	 SetPlayerInterior(playerid, 0);
	 SendClientMessage(playerid, COLOR_YELLOW, "Shen Gadateleportdi Vinewoodtan");
	 }
	 case 1;
	 {
	 SetPlayerPos(playerid, 1118.1058,-1749.1381,13.6181);
	 SetPlayerInterior(playerid, 0);
	 SendClientMessage(playerid, COLOR_YELLOW, "Shen Gadateleportdi Spawntan");
	 }
	 case 2;
	 {
     SetPlayerPos(playerid, -2405.9446,343.1351,35.0238);
	 SetPlayerInterior(playerid, 0);
	 SendClientMessage(playerid, COLOR_YELLOW, "Shen Gadateleportdi SFs Mtavrobastan");
	 }
   }
 }
 return 1;
And Here
Код HTML:
if(strcmp(cmd, "/teleport", true) == 0)
	{
	ShowPlayerDialog(playerid, 20323, DIALOG_STYLE_LIST, "Teleport", "Vinewood\nSpawn\nMtavroba", "Tele", "Exit");
	return 1;
	}



Re: Guys i need help - Laurey - 26.10.2014

It usually happens when you get too many errors, what recent change you had done?

PS: Edited.


Re: Guys i need help - Dezzzy - 26.10.2014

didnt understand what u told .. im so new in the scripting


Re: Guys i need help - Rudy_ - 26.10.2014

pawn Код:
case 0: ShowPlayerDialog(playerid, 20323, DIALOG_STYLE_LIST, "Teleport", "Vinewood\nSpawn\nMtavroba", "Tele", "Exit");
Edit: close the bracket
pawn Код:
switch(listitem
)


Re: Guys i need help - mkmk - 26.10.2014

This is using zcmd, but try this - not too sure if it'll work as I've never really scripting anything like it before.
Don't copy and paste it, take time to read the script and change where it says "[ADMIN SYSTEM HERE]" and "[cords]"

pawn Код:
CMD:gotols(playerid, params[])
{
    [ADMIN SYSTEM HERE] return SendClientMessage(playerid, -1 "You do not have permission to use this command");
    {
    else
    }
    SetPlayerPos(playerid, [cords here]
}
The command will only teleport you to los santos once you've placed the cords in, do this for every location I guess - should work.


Re: Guys i need help - Dezzzy - 26.10.2014

bro i have closed the bracket but i have same problem