Guys i need help
#1

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;
	}
Reply
#2

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

PS: Edited.
Reply
#3

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

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

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

bro i have closed the bracket but i have same problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)