[TuT] Djurine Kućne Čarolije - Kako napraviti Race (GF)

Započeo zerocoolos, Avgust 29, 2009, 22:30:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Citat: zerocoolos poslato Avgust 31, 2009, 18:36:56 POSLE PODNE
Citat: Razbojnik poslato Avgust 31, 2009, 18:11:12 POSLE PODNE
jel moze neko postat neki tut kako dodat da neki race ima npr. 3 kruga i npr. kad udes u zatnji CP u prvom krugu da dode taj i taj je upravo zavrsio prvi krug tog i tog race-a

PLS ljudovi pomozite :D >:(

koristi malo svoj mozak, dao sam ti jednostavan race, pa ti ga razvij...

king on ti zeli da mu se da gotov race sa komandom /utrka [broj krugova], nema malo promisli pa neka nesta i sam napravi


ne ne ne, ne trazim ja da mi napravite gotov race nego samo funkciju s kojom napravim da ima 2 ili 3 kruga...


Citat: panda poslato Avgust 31, 2009, 18:50:57 POSLE PODNE
lol Razbojnik onda samo ponavljas CPove toliko puta kolko krugova zelis

OMG ae necu ovu glupu poruku komentirat...jbt to je onda 1 krug a ne 3 jbt...

zerocoolos

gle ovako da ti objasnim, napravi si varijablu za krugove, to podrazumijeva da gore u skripti napravis new krugovi; i provjeravaj kasnije u kojem su krugu, ne moras cpove ponavljat... ovako mozes npr stavit 1000 krugova ako zelis...

turker_kc

Citat: Razbojnik poslato Avgust 31, 2009, 18:53:23 POSLE PODNE
Citat: zerocoolos poslato Avgust 31, 2009, 18:36:56 POSLE PODNE
Citat: Razbojnik poslato Avgust 31, 2009, 18:11:12 POSLE PODNE
jel moze neko postat neki tut kako dodat da neki race ima npr. 3 kruga i npr. kad udes u zatnji CP u prvom krugu da dode taj i taj je upravo zavrsio prvi krug tog i tog race-a

PLS ljudovi pomozite :D >:(

koristi malo svoj mozak, dao sam ti jednostavan race, pa ti ga razvij...

king on ti zeli da mu se da gotov race sa komandom /utrka [broj krugova], nema malo promisli pa neka nesta i sam napravi


ne ne ne, ne trazim ja da mi napravite gotov race nego samo funkciju s kojom napravim da ima 2 ili 3 kruga...


Citat: panda poslato Avgust 31, 2009, 18:50:57 POSLE PODNE
lol Razbojnik onda samo ponavljas CPove toliko puta kolko krugova zelis

OMG ae necu ovu glupu poruku komentirat...jbt to je onda 1 krug a ne 3 jbt...

pa lol ti nisi najbistriji a ?

omfg

recimo svaki krug tvog racea ima 3 checkpointa

e sad tvoji checkpointovi

else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
- ovo je bezvezni primjer uzet iz tuta za checkpointove

e sad ti to onda samo kopiras kolko krugova imas omg

else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3


sad bi to bila 4 kruga.... jesi sad skuzio ?!


Citat: panda poslato Avgust 31, 2009, 19:48:41 POSLE PODNE
Citat: Razbojnik poslato Avgust 31, 2009, 18:53:23 POSLE PODNE
Citat: zerocoolos poslato Avgust 31, 2009, 18:36:56 POSLE PODNE
Citat: Razbojnik poslato Avgust 31, 2009, 18:11:12 POSLE PODNE
jel moze neko postat neki tut kako dodat da neki race ima npr. 3 kruga i npr. kad udes u zatnji CP u prvom krugu da dode taj i taj je upravo zavrsio prvi krug tog i tog race-a

PLS ljudovi pomozite :D >:(

koristi malo svoj mozak, dao sam ti jednostavan race, pa ti ga razvij...

king on ti zeli da mu se da gotov race sa komandom /utrka [broj krugova], nema malo promisli pa neka nesta i sam napravi


ne ne ne, ne trazim ja da mi napravite gotov race nego samo funkciju s kojom napravim da ima 2 ili 3 kruga...


Citat: panda poslato Avgust 31, 2009, 18:50:57 POSLE PODNE
lol Razbojnik onda samo ponavljas CPove toliko puta kolko krugova zelis

OMG ae necu ovu glupu poruku komentirat...jbt to je onda 1 krug a ne 3 jbt...

pa lol ti nisi najbistriji a ?

omfg

recimo svaki krug tvog racea ima 3 checkpointa

e sad tvoji checkpointovi

else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
- ovo je bezvezni primjer uzet iz tuta za checkpointove

e sad ti to onda samo kopiras kolko krugova imas omg

else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 677.9709,-2667.4248,76.4162,50.0); } //1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 106.4192,-2659.7209,49.0916,50.0); } //2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -452.0713,-2660.3865,179.8581,50.0); } //3


sad bi to bila 4 kruga.... jesi sad skuzio ?!


1. to nisu 4 kruga nego 4x isto postavljeni CP-i i to smao bzvz zauzima redove npr. ja sad imam 40 CP-a i ocu 3 kruga pa lakse mi je u 8-9 redova napravit nego u 120  :-\ :-X


Citat: zerocoolos poslato Avgust 31, 2009, 18:58:29 POSLE PODNE
gle ovako da ti objasnim, napravi si varijablu za krugove, to podrazumijeva da gore u skripti napravis new krugovi; i provjeravaj kasnije u kojem su krugu, ne moras cpove ponavljat... ovako mozes npr stavit 1000 krugova ako zelis...

Otprilike znam na sta mislis pokusat cu ako ne uspijem jbg...

EDIT: jbg meni ovo ne ide xDD al nema veze BTW Ako neko moze neka stavi neki tut o tome pls...
Poslednja Izmena: Septembar 01, 2009, 01:22:23 PRE PODNE od Razbojnik

pa djuro di ces u krc e svaka cast za naziv djurine kucne carolije hahah ma bravo care, javi se ponekad...

ja tako napravim i dobijem ove errore




C:\DOCUME~1\sarma\Desktop\KUCNIS~1\GAMEMO~1\gf.pwn(3792) : error 017: undefined symbol "string"
C:\DOCUME~1\sarma\Desktop\KUCNIS~1\GAMEMO~1\gf.pwn(3792) : error 017: undefined symbol "string"
C:\DOCUME~1\sarma\Desktop\KUCNIS~1\GAMEMO~1\gf.pwn(3792) : error 029: invalid expression, assumed zero
C:\DOCUME~1\sarma\Desktop\KUCNIS~1\GAMEMO~1\gf.pwn(3792) : fatal error 107: too many error messages on one line


a svi su na ovoj crti
format(string, sizeof(string), "Utrka - Cilj: %s",sendername);
Poslednja Izmena: Septembar 09, 2009, 08:48:14 PRE PODNE od sorfa

zerocoolos

citaj sta ti pise za error... lijepo pise da "string" nije definiran... sada ga samo moras definirat....

new string[128];



Prekuco skriptanje ;D
____________________________-

Zeljo vodiiii idemo u finale kupa (izvinite ali morao sam ;D ;D ;D ;D ;D)
Now on CroHerza Roleplay/DM.

Nikad zaboravit: rk01, Capone, GooD, WixxeR, ShoX, Trmka, Leon, putic, Suki,Dane,  eRasmos, EMIR,Dupi, LUksa, Max, Amina, Jovana,Don Corleone,  Shooter..

Ludi Grad <3...

Nekad Ludi Grad Head Admin..

RazoR aka Razor_Sky aka RazoRSkY aka DestinY aka MoneY aha The Game aka Laquilla....

C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1423) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1434) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1688) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1713) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1733) : error 004: function "SetPlayerCriminal" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1738) : error 004: function "SetPlayerCriminal" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1802) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1806) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1818) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1822) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1826) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1830) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1834) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1838) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1842) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1854) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1858) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1862) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1866) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1870) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1882) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1886) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1890) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1902) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1906) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Zeros\Desktop\SRVR\gamemodes\RG-RP.pwn(1910) : error 004: function "PlayerToPoint" is not implemented

ste bi te bilo?


trebam pomoc oko ovih chekpointova  ::)

public OnPlayerLeaveCheckpoint(playerid)
{
if(PlayerInfo[playerid][pUtrka] >= 2)
{
               if(PlayerToPoint(5, playerid,1007.5831,2224.0020,10.3791))//cp1
               {
                       if(PlayerInfo[playerid][pUtrka] == 2)
                       {
                            PlayerInfo[playerid][pUtrka] = 3;
                            SetPlayerRaceCheckpoint(playerid, 0, 1007.0598,1874.7622,10.3779, 1007.4919,1384.5295,10.3775, 5);// kao sto vidite u race cp unosite iduci cp i onaj iza njega
   }
               }
               if(PlayerToPoint(10, playerid,1007.4919,1384.5295,10.3775))//cp n-ti
               {
                       if(PlayerInfo[playerid][pUtrka] == 3)
                       {
                            SendClientMessage(playerid, COLOR_YELLOW, "Prosao si kroz cilj");
PlayerInfo[playerid][pUtrka] = 3;//da mozete i dalje vidjeti kad prolaze kroz cilj
                            DisablePlayerRaceCheckpoint(playerid);
                   



ovo mi je cp 1: 1007.5831,2224.0020,10.3791
ovo mi je cp 2: 1007.0598,1874.7622,10.3779
ovo mi je cilj to jest zadnji cp: 1007.4919,1384.5295,10.3775


ako bi mi neko pls mogao ovo posloziti u gore navedeni kod  :-[  :-[  :-[


[BP] HeLoX ba! ^^
Forum: balkan-paradise.info- Još u izradi!

ja imam slijedeci problem.sve napravim po ovom tutu,pozovem npr sebe i frenda obadvoje smo admini,i utrka normalno krene spusti se kapija sve radi savrseno ali kad npr pozovem sebe i neku osobu koja nije admin pise utrka aktivirana od admina tog i tog al nista se ne dogaÄ'a nece se spustit kapija nista,uopce ni ne pocne odbrojavat.di bi mogo bit problem?