[Pomoc]Simple Gunshopovi

Započeo Mladen Smiljan, Jul 01, 2011, 21:27:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Call of Duty
Detaljan opis problema: Evo imam tu kod i kako da postavim da je vise ifplayerinrage Kordinate??
Dio skripte: if(strcmp(cmdtext, "/oruzje", true) == 0)
   {
   if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010))   // To trebam vise toga da je za vise intova....
      {
   ShowPlayerDialog(playerid,115, DIALOG_STYLE_LIST, "Oruzje:", "9mm\nDeagle\nMP5\nMircro SMG\nTec9\nShootGun\nSawnOff\nAK-47\nM4", "Kupi", "Odustani");
      }
   }

Neke slike/video za lakse dobivanje pomoci(neobavezno)://

E i da jos pitam:
Kako umjesto toga sto sam stavio : return SendClientMessage(playerid,  0x33CCFFAA, "GRESKA: Komanda koju ste upisali ne postoji!");
stavim da nista nepise i da se na chetu nista ne dogadja?
Poslednja Izmena: Jul 01, 2011, 21:33:53 POSLE PODNE od Mladen Smiljan
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

dragan12

Ovako:
if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,x,y,z))

Lakse mu je napraviti stock funkciju na kraju i u njoj stavljati uvjete nego ovako komplicirati komandu koja treba da bude jednostavna...
Just one more time.

dragan12

Citat: EM|Pacino poslato Jul 01, 2011, 21:40:40 POSLE PODNE
Lakse mu je napraviti stock funkciju na kraju i u njoj stavljati uvjete nego ovako komplicirati komandu koja treba da bude jednostavna...
Pa da ali on je pitao kako da doda jos ovih ja sam mu samo dao odgovor na to. Ali kao sto ti kazes to je i lakse i bolje

CitatOvako:
Kod:
if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,x,y,z))

Ne sljaka to :((((
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

dragan12

Citat: Mladen Smiljan poslato Jul 01, 2011, 21:42:48 POSLE PODNE
CitatOvako:
Kod:
if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,x,y,z))

Ne sljaka to :((((
Sta nece? Jel ti izbaci error-e ili sta? A jel si stavio kordinate umesto x,y,z

Izbrisi taj kod SendClientMessage(playerid,  0x33CCFFAA, "GRESKA: Komanda koju ste upisali ne postoji!"); i nece ti pisati nista kada budes ukucao :S..
Poslednja Izmena: Jul 01, 2011, 22:05:51 POSLE PODNE od Xmolâ„¢

Daj cijelu komandu /oruzje i objasni problem :S
sta kad kucas /oruzje pise ti to GRESKA : ........ ????
ako je to onda nisi return .

  if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010))
Tako Radi kad su dvije

if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010)) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165
.2427,999.6010))


Tako ne radu izbaci mi ove Errore:

C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : error 029: invalid expression, assumed zero
C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : error 001: expected token: ";", but found ")"
C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : error 029: invalid expression, assumed zero
C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : 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.

----------------------------------------------------------------------
A ono za Return 0; sam zamjenio sam Return 1; i sad je ok.

---------------------------------------------------------------------
Poslednja Izmena: Jul 02, 2011, 08:38:02 PRE PODNE od Mladen Smiljan
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

dragan12

Citat if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010)) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165
.2427,999.6010))


Tako ne radu izbaci mi ove Errore:
Aj pogledaj pa ces videti sto neradi ovako ide to:
if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165
.2427,999.6010))

Ovo crveno ti je problem zato ti izbacuej erore :
Citat: Mladen Smiljan poslato Jul 02, 2011, 08:30:04 PRE PODNE
  if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010))
Tako Radi kad su dvije

if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010)) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165
.2427,999.6010))

Tako ne radu izbaci mi ove Errore:

C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : error 029: invalid expression, assumed zero
C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : error 001: expected token: ";", but found ")"
C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : error 029: invalid expression, assumed zero
C:\Users\Smiljan\Desktop\Mladen\Call of Duty\gamemodes\cod.pwn(372) : 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.

----------------------------------------------------------------------
A ono za Return 0; sam zamjenio sam Return 1; i sad je ok.

---------------------------------------------------------------------
Stavi kao sto ti je dao Gagi
Citat: [Balcanium]Gagi_Corleone poslato Jul 02, 2011, 09:00:50 PRE PODNE
Citat if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010)) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165
.2427,999.6010))


Tako ne radu izbaci mi ove Errore:
Aj pogledaj pa ces videti sto neradi ovako ide to:
if(IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165.2427,999.6010) || IsPlayerInRangeOfPoint(playerid, 8.0,312.2361,-165
.2427,999.6010))


Moze lock ovjde :D
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%