[Pomoc] Gangzone

Započeo owNer, Novembar 12, 2010, 23:33:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Eo ovako imam TDM gamemod
i dosla mi ideja da ubacim gangzone
ja sam naso koordinate ali gledao sam tamo na samp wiki i na samp forumu nece mi nikako
pa eto ovo su koordinate

GangZoneCreate(2550.794433,-1738.922851,2217.642822,-1594.534057);
GangZoneCreate(2276.606689,-1389.842041,2066.296142,-1088.712280);
GangZoneCreate(1820.263183,-1732.481201,1683.251220,-1956.072143);
GangZoneCreate(1693.967163,-1735.506591,1521.581054,-1589.718017);
GangZoneCreate(798.523681,-1324.636718,619.941711,-1055.922485);
GangZoneCreate(2375.155517,-2693.202392,2806.902587,-2331.000488);



new GangZone;
GangZone = CreateObject(.....) :P
skype: marko.pintaric1 :)


Citat: ..:::Eu:::...Nicky_Boss poslato Novembar 13, 2010, 07:03:26 PRE PODNE
new GangZone;
GangZone = CreateObject(.....) :P

Ti di prso...

OnGameModeInit:

Kod: c
GangZone = GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy);//GangZone oznacava ime zone pod new a u zagradama ovim idu tvoj cord one sto si naveo gore...


Kod OnPlayerSpawn ispod ide ovo:

Kod: c
GangZoneShowForPlayer(playerid, zone, color);//playerid oznacava id a zone ime zone koje si stavio pod new

Pod new:

Kod: c
new GangZone;//ime zone

Poslednja Izmena: Novembar 13, 2010, 09:54:32 PRE PODNE od David Škrbić

Citat: David Škrbić poslato Novembar 13, 2010, 09:51:49 PRE PODNE

OnGameModeInit:

Kod: c
GangZone = GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy);//GangZone oznacava ime zone pod new a u zagradama ovim idu tvoj cord one sto si naveo gore...


Kod OnPlayerSpawn ispod ide ovo:

Kod: c
GangZoneShowForPlayer(playerid, zone, color);//playerid oznacava id a zone ime zone koje si stavio pod new

Pod new:

Kod: c
new GangZone;//ime zone



Eo pratio sam tvoje i eo errora
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(111) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(263) : error 017: undefined symbol "COLOR_GREEN"
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(264) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(266) : warning 225: unreachable code
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(267) : error 017: undefined symbol "COLOR_PURPLE"
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(268) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(270) : warning 225: unreachable code
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(271) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(272) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(274) : warning 225: unreachable code
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(275) : error 017: undefined symbol "COLOR_BLUE"
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(276) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(278) : warning 225: unreachable code
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(279) : error 017: undefined symbol "COLOR_BLACK"
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(280) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(282) : warning 225: unreachable code
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(283) : error 017: undefined symbol "COLOR_YELLOW"
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(284) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\GTA San Andreas User Files\[TDM] Gang Wars [0.3b]\gamemodes\GangWars_v1.1.pwn(286) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
Poslednja Izmena: Novembar 13, 2010, 10:50:56 PRE PODNE od owNer

black_dota

definiraj boje

#define COLOR_BLUE #kodzaboju

i tako ostale boje