[Pomoc] Automatska vrata

Započeo gamer13915, Decembar 14, 2012, 18:10:31 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Svoj gamemod od 0
Detaljan opis problema:izbacuje mi ove errore G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : warning 215: expression has no effect
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : error 001: expected token: ";", but found "]"
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : fatal error 107: too many error messages on one line
a sve sam napravio kao u  ovoj temi //http://balkan-samp.com/forum/index.php?topic=1367.msg12591#msg12591
Dio skripte: {
if (strcmp("/teleport", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 20323, DIALOG_STYLE_LIST, "Teleport", "Planina\nWinewood\nGranica", "Teleport", "Exit");
return 1;
}
if (strcmp("/teleport2", cmdtext, true, 10 ) == 0)
{
SetPlayerPos(playerid, 1674.2566,-1401.9370,84.6563);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to building");
}
if (strcmp("/p", cmdtext, true, 10 ) == 0)
{
GivePlayerWeapon(playerid,46, 999);
}
129-->if(strcmp(cmdtext,"/otvori",true)==0)
{
if(PlayerInfo[playerid][pAdmin] == 1338)
{
MoveObject(gate, 267.7998046875, -1331.099609375, 52.299999237061, 5000);
SendClientMessage(playerid, COLOR_YELLOW, "Otisci prstiju potvrdeni. Vrata se otvaraju.");
SetTimer("gateTimer", 5000, 0);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Morate biti admin da bi otvorili vrata.");
}
return 1;
}
return 0;
154---> }
Ovo crveno je ta komanda za automatska vrata
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Decembar 14, 2012, 18:30:29 POSLE PODNE od gamer13915

svejedno mi izbacuje errore
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : warning 215: expression has no effect
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : error 001: expected token: ";", but found "]"
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(141) : fatal error 107: too many error messages on one line


Može LOCK, rješio sam problem

Poslednja Izmena: Decembar 14, 2012, 18:59:25 POSLE PODNE od gamer13915