Üdv mindenki!Megtudná nekem mondani,hogy mi a hibája a teleportos scriptnek?Kezdõ vagyok,nézzétek el :D
HIBA:
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : warning 215: expression has no effect
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : warning 215: expression has no effect
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : warning 215: expression has no effect
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : warning 215: expression has no effect
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : warning 215: expression has no effect
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : error 001: expected token: \";\", but found \")\"
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\VIktor\\Asztal\\új\\filterscripts\\tp.pwn(13) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PAWN:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define DIALOG_35
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, \"/teles\"))
{
ShowPlayerDialog(playerid, DIALOG_35, DIALOG_STYLE_LIST, \"Teleportok\", \"Stunt\\nDisco\\nGokart\\nDodzsem\\nMedence\\nHotdog\\nÚj reptér\\nLos Santos-i reptér\", \"Portolj!\", \"Kilép\");//én a DIALOG_STYLE_LIST-t használtam
retturn 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_35)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,-1341.3594,-96.1114,14.1484);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-2432.7717,-2823.9612,3.0000);
}
if(listitem == 2)
{
SetPlayerPos(playerid,866.7722,-1855.7870,8.8778);
}
if(listitem == 3)
{
SetPlayerPos(playerid,511.7700,-1887.5857,2.7518);
}
if(listitem == 4)
{
SetPlayerPos(playerid,-1714.4646,-2726.6948,24.6831);
}
if(listitem == 5)
{
SetPlayerPos(playerid,2038.0737,-1684.8853,13.5469);
}
if(listitem == 6)
{
SetPlayerPos(playerid,-2384.9651,-3627.8716,11.1687);
}
if(listitem == 7)
{
SetPlayerPos(playerid,-2384.9651,-3627.8716,11.1687);
}
}
}else{
SendClientMessage(playerid, 0x400000FF, \"Kiléptél\");
}
}
return 1;
}
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define DIALOG_35 35
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, \"/teles\"))
{
ShowPlayerDialog(playerid, DIALOG_35, DIALOG_STYLE_LIST, \"Teleportok\", \"Stunt\\nDisco\\nGokart\\nDodzsem\\nMedence\\nHotdog\\nÚj reptér\\nLos Santos-i reptér\", \"Portolj!\", \"Kilép\");//én a DIALOG_STYLE_LIST-t használtam
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_35)
{
if(!response) return SendClientMessage(playerid, 0x400000FF, \"Kiléptél\");
if(listitem == 0)
{
SetPlayerPos(playerid,-1341.3594,-96.1114,14.1484);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-2432.7717,-2823.9612,3.0000);
}
if(listitem == 2)
{
SetPlayerPos(playerid,866.7722,-1855.7870,8.8778);
}
if(listitem == 3)
{
SetPlayerPos(playerid,511.7700,-1887.5857,2.7518);
}
if(listitem == 4)
{
SetPlayerPos(playerid,-1714.4646,-2726.6948,24.6831);
}
if(listitem == 5)
{
SetPlayerPos(playerid,2038.0737,-1684.8853,13.5469);
}
if(listitem == 6)
{
SetPlayerPos(playerid,-2384.9651,-3627.8716,11.1687);
}
if(listitem == 7)
{
SetPlayerPos(playerid,-2384.9651,-3627.8716,11.1687);
}
}
return 0;
}