Pomoc GPS

Započeo KuJo123, Avgust 28, 2013, 22:39:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo moj gps system
#include <a_samp>

#if defined FILTERSCRIPT
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"GPS","Banka\nOpstina\nPD Stanica\nAuto Skola\nAuto Pijaca\nLSPD\nFBI\nBolnica\nPS\nNovinari\nTAXI\nThe Escobar Cartel\nGHS\nVagos\nLCN\nGSF\nYakuzaOff GPS","Okay","Exit");
return 1;
}
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju BANKA");
SetPlayerCheckpoint(playerid, 1462.8000488281, -1027.3000488281, 23.60000038147, 3.0);
}
case 1:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Opstina");
SetPlayerCheckpoint(playerid, 1482.0999755859, -1740.5999755859, 13.39999961853, 3.0);
}
case 2:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Pd stanica");
SetPlayerCheckpoint(playerid, 1534.5999755859, -1674.8000488281, 13.199999809265, 3.0);
}
case 3:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Auto Skola ");
SetPlayerCheckpoint(playerid, 2055.1999511719, -1924.8000488281, 13.39999961853, 3.0);
}
case 4:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju AutoPijaca");
SetPlayerCheckpoint(playerid, 1637.4000244141, -1148.4000244141, 23.700000762939, 3.0);
}
case 5:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju LSPD");
SetPlayerCheckpoint(playerid, 1534.5999755859, -1674.8000488281, 13.199999809265, 3.0);
}
case 6:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju FBI");
SetPlayerCheckpoint(playerid, 1520.4000244141, -1447.5999755859, 13.300000190735, 3.0);
case 7:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Bolnica");
SetPlayerCheckpoint(playerid, 1184.3000488281, -1323.3000488281, 13.39999961853, 3.0);
case 8:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju PS");
SetPlayerCheckpoint(playerid, 1021.4000244141, -947.20001220703, 42.099998474121, 3.0);
case 9:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Novinari");
SetPlayerCheckpoint(playerid, 1785.4000244141, -1288.5999755859, 13.39999961853, 3.0);
case 10:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Taxi");
SetPlayerCheckpoint(playerid, 1269.8000488281, -1843.4000244141, 13.199999809265, 3.0);
case 11:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju The Escobar Cartel");
SetPlayerCheckpoint(playerid, 1023.5999755859, -372.60000610352, 73.300003051758, 3.0);
case 12:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju GHS");
SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
case 13:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Vagos");
SetPlayerCheckpoint(playerid, 2598.3000488281, -1055.8000488281, 69.400001525879, 3.0);
case 14:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju LCN");
SetPlayerCheckpoint(playerid, 1296.4000244141, -2055.8999023438, 58.200000762939, 3.0);
case 15:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju GSF");
SetPlayerCheckpoint(playerid, 2459.6999511719, -1659, 13.10000038147, 3.0);
case 16:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Yakuza");
SetPlayerCheckpoint(playerid, 2818.3000488281, -1584.1999511719, 10.699999809265, 3.0);
case 17:
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS iskljucen!");
DisablePlayerCheckpoint(playerid);
}
}
}
}
}
return 1;
}

Kad pokusam da ga complile izbaci mi ova 4 errora
C:\Documents and Settings\daco\Desktop\gamemodes\GPS1.pwn(26) : error 002: only a single statement (or expression) can follow each "case"
C:\Documents and Settings\daco\Desktop\gamemodes\GPS1.pwn(26 -- 27) : error 028: invalid subscript (not an array or too many subscripts): "listitem"
C:\Documents and Settings\daco\Desktop\gamemodes\GPS1.pwn(26 -- 28) : error 001: expected token: "}", but found "case"
C:\Documents and Settings\daco\Desktop\gamemodes\GPS1.pwn(26 -- 28) : fatal error 107: too many error messages on one line