[Pomoc]Teleport dialog itd

Započeo Gamer.Im, April 01, 2011, 22:39:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Gamer.Im

Skripta koju koristim:Penls edit by Djuro aka Zoran
Detaljan opis problema:Kako da napravim komandu kao za se teleportirat u dialogu,znaci kao na serveru Crazy Balkan,kao dode dialog DM 1V1,STUNT...kako?
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

poznaticovik

Primjer

if(!strcmp(cmdtext, "/teles", true))
{
    ShowPlayerDialog(playerid, teleports, DIALOG_STYLE_LIST, "Odaberi željeno mjesto", "DM Arena\nStunt Zona", "Teleport", "Odustani");
    return 1;
}


I sada Dialog Response

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == teleports)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid,Boja,"Teleportali ste se!");
SetPlayerPos(playerid,X,Y,Z);
}
if(listitem == 1)
{
SendClientMessage(playerid,Boja,"Teleportali ste se!");
SetPlayerPos(playerid,X,Y,Z);
}
}
   }
   return true;
}

Gamer.Im

C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6925) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6926) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6927) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6928) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6929) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6930) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6931) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6932) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6933) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6934) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6935) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6936) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6937) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6938) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6939) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6940) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6941) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6942) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6943) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6944) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6945) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6946) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6947) : warning 202: number of arguments does not match definition
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(6948) : warning 213: tag mismatch
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(7049) : warning 217: loose indentation
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(7059) : warning 217: loose indentation
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13087) : error 017: undefined symbol "teleports"
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13090) : warning 217: loose indentation
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13090) : error 029: invalid expression, assumed zero
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13090) : error 004: function "OnDialogResponse" is not implemented
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13091) : warning 217: loose indentation
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13092) : error 017: undefined symbol "dialogid"
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13094) : error 017: undefined symbol "response"
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13096) : error 017: undefined symbol "listitem"
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13101) : error 017: undefined symbol "listitem"
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13108) : warning 217: loose indentation
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(13112) : warning 225: unreachable code
C:\Users\Dino\Desktop\TesT\gamemodes\Pe8.pwn(20171) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

poznaticovik

Pa omg , moraš napočetak skripte

new teleports;

Ne znam zašto ti je listitem,dialogid,response undefined simbol :S