[POMOC] Kako napravit race cp

Započeo Don Stone, Avgust 22, 2010, 11:38:19 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Molim vas recite mi kako napravit race cp :(
 
Moji Radovi:
_________________________________________
_________________________________________

Aha, ja sam mislio da imas neki problem pa sam ti zato rekao da postas, ali nema veze..

Uglavnom koristis funkciju SetPlayerRaceCheckpoint .


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

SetPlayerRaceCheckpoint(playerid,tip,x,y,z,pokazivanjeX,pokazivanjeY,pokazivanjeZ);

Ovo POKAZIVANJE znaci gdje ce ce ona strelica unutra pokazivat.... to ubacis u komandu/mjesto koje zelis

ZicMortal

Kao i obicni CP. Uzmes neku varijablu za checkpointove (u obicnom CP sistemu od GFa je new CP[MAX_PLAYERS]) i prema tome principu  :-\

nastoe

Citat: ZicMortal poslato Avgust 22, 2010, 12:04:55 POSLE PODNE
Kao i obicni CP. Uzmes neku varijablu za checkpointove (u obicnom CP sistemu od GFa je new CP[MAX_PLAYERS]) i prema tome principu  :-\
Ili neka koristi PVarove i nece trebati te gluposti stavljati MAX_PLAYERS itd

SetPlayerRaceCheckpoint(playerid,tip,x,y,z,pokazivanjeX,pokazivanjeY,pokazivanjeZ);


Ovo POKAZIVANJE znaci gdje ce ce ona strelica unutra pokazivat.... to ubacis u komandu/mjesto koje zelis

Sta znaci ovo "tip" i ne kontam ovo "pokazivanje".
 
Moji Radovi:
_________________________________________
_________________________________________


ugl ovo "pokazivanjeX,pokazivanjeY,pokazivanjeZ" .. tu stavis koordinate sljedeceg Race Checkpointa .. tako da ce strelica pokazivat u njegovom smjeru ...
a ovo "tip" je vrsta checkpointa tj ako stavis "0" onda je to check point sa Strelicom u njemu, ako stavis "1" onda ti je onaj sa zastavicom tj finish, itd

Vise na wiki samp

http://wiki.sa-mp.com/wiki/SetPlayerRaceCheckpoint

Vikend je policija nas hvata,
vikend je ode cijela plata,
oko nas stvari ukradene,
sve smo dali na planove i sheme..
||||:=:=:=:=:=:=::=:=:=:=:=:=:=:THE IVEX:=:=:=:=:=:=:=:=:=::=:=:=:=:=:=::=:|||| 


PS: Ne saljite mi nikakve pm jer neodgovaram na njih! Ako trebate nes pitajte ove pr0 skriptere pa neka vam kazu!Hvala !

Jel to stavim ispod
Citatpublic OnPlayerEnterRaceCheckpoint(playerid)
?


Evo i erora:

C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(2362) : warning 217: loose indentation
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4431) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4431) : warning 215: expression has no effect
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4431) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4460) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4460) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4460) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4463) : error 017: undefined symbol "name"
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4463) : error 017: undefined symbol "name"
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4463) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Servis\Desktop\Skriptanje\Balkan Street\Balkan Street\gamemodes\BS.pwn(4463) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


Eto kod.
Poslednja Izmena: Avgust 22, 2010, 16:03:10 POSLE PODNE od Don Stone
 
Moji Radovi:
_________________________________________
_________________________________________

Kod stavi.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

stavio sam.

Evo kako sam stavio u pawno:

public OnPlayerEnterRaceCheckpoint(playerid)
{
//-------------------------------------------------Rally-------------------------------------------------------------------------------------------------------------------------
   else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-381.0479,2582.7529,40.8072,-433.7266,2716.0010,62.9098,8.0); }//Rally 1
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-433.7266,2716.0010,62.9098,-553.4186,2709.4326,67.0757,8.0); }//Rally 2
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-553.4186,2709.4326,67.0757,-550.2041,2479.3557,67.4586,8.0); }//Rally 3
else if(CP[playerid] == 303) { CP[playerid] = 304; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-550.2041,2479.3557,67.4586,-396.6135,2452.9373,42.4904,8.0); }//Rally 4
else if(CP[playerid] == 304) { CP[playerid] = 305; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-396.6135,2452.9373,42.4904,-399.7422,2288.0774,40.4865,8.0); }//Rally 5
else if(CP[playerid] == 305) { CP[playerid] = 306; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-399.7422,2288.0774,40.4865,-647.2491,2446.4846,106.8281,8.0); }//Rally 6
else if(CP[playerid] == 306) { CP[playerid] = 307; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-647.2491,2446.4846,106.8281,-716.2424,2380.2847,128.1975,8.0); }//Rally 7
else if(CP[playerid] == 307) { CP[playerid] = 308; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-716.2424,2380.2847,128.1975,-841.3444,2407.0779,121.8632,8.0); }//Rally 8
else if(CP[playerid] == 308) { CP[playerid] = 309; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-841.3444,2407.0779,121.8632,-775.2737,2554.8125,87.3015,8.0); }//Rally 9
else if(CP[playerid] == 309) { CP[playerid] = 310; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-775.2737,2554.8125,87.3015,-736.8208,2520.7048,77.4711,8.0); }//Rally 10
else if(CP[playerid] == 310) { CP[playerid] = 311; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-736.8208,2520.7048,77.4711,-722.1011,2564.1992,72.2594,8.0); }//Rally 11
else if(CP[playerid] == 311) { CP[playerid] = 312; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-722.1011,2564.1992,72.2594,-699.0298,2687.5889,56.7555,8.0); }//Rally 12
else if(CP[playerid] == 312) { CP[playerid] = 313; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-699.0298,2687.5889,56.7555,-773.9106,2696.8928,47.4123,8.0); }//Rally 13
else if(CP[playerid] == 313) { CP[playerid] = 314; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-773.9106,2696.8928,47.4123,-793.9406,2731.3564,45.6755,8.0); }//Rally 14
else if(CP[playerid] == 314) { CP[playerid] = 315; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-793.9406,2731.3564,45.6755,-1221.9352,2671.3647,46.6557,8.0); }//Rally 15
   else if(CP[playerid] == 315) { CP[playerid] = 316; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1221.9352,2671.3647,46.6557,-1083.4266,2271.9275,87.5389,8.0); }//Rally 16
   else if(CP[playerid] == 316) { CP[playerid] = 317; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1083.4266,2271.9275,87.5389,-1227.2368,2069.5122,77.8811,8.0); }//Rally 17
   else if(CP[playerid] == 317) { CP[playerid] = 318; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1227.2368,2069.5122,77.8811,-1232.8563,1936.5283,43.2873,8.0); }//Rally 18
   else if(CP[playerid] == 318) { CP[playerid] = 319; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1232.8563,1936.5283,43.2873,-1233.9597,1892.7593,42.1646,8.0); }//Rally 19
   else if(CP[playerid] == 319) { CP[playerid] = 320; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1233.9597,1892.7593,42.1646,-1159.9926,1797.8778,40.4028,8.0); }//Rally 20
   else if(CP[playerid] == 320) { CP[playerid] = 321; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1159.9926,1797.8778,40.4028,-908.7454,1791.1423,60.5440,8.0); }//Rally 21
   else if(CP[playerid] == 321) { CP[playerid] = 322; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-908.7454,1791.1423,60.5440,-704.4327,2055.2756,60.5310,8.0); }//Rally 22
   else if(CP[playerid] == 322) { CP[playerid] = 323; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-704.4327,2055.2756,60.5310,-466.0294,2049.4277,61.2173,8.0); }//Rally 23
   else if(CP[playerid] == 323) { CP[playerid] = 324; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-466.0294,2049.4277,61.2173,-373.0063,2163.2742,42.6264,8.0); }//Rally 24
   else if(CP[playerid] == 324) { CP[playerid] = 325; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-373.0063,2163.2742,42.6264,-371.9172,2353.1245,30.0497,8.0); }//Rally 25
   else if(CP[playerid] == 325) { CP[playerid] = 326; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-371.9172,2353.1245,30.0497,-394.9331,2464.6841,42.1253,8.0); }//Rally 26
   else if(CP[playerid] == 326) { CP[playerid] = 327; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-394.9331,2464.6841,42.1253,-348.7216,2521.9839,36.3174,8.0); }//Rally 27
   else if(CP[playerid] == 327) { CP[playerid] = 328; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-348.7216,2521.9839,36.3174,-404.2513,2589.1233,42.8666,8.0); }//Rally 28
   else if(CP[playerid] == 328) { CP[playerid] = 329; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-404.2513,2589.1233,42.8666,-508.4895,2592.4163,53.7684,8.0); }//Rally 29
   else if(CP[playerid] == 329) { CP[playerid] = 330; DisablePlayerCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,1,-508.4895,2592.4163,53.7684,8.0); }//Rally 30
else if(CP[playerid] == 330)//Kraj Rally-a
   {
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s je upravo zavrsio Rally Race. ", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
DisablePlayerCheckpoint(playerid);
CP[playerid] = 0;
}
return 1;
}


Stavio sam kod povis tvog posta.
Poslednja Izmena: Avgust 22, 2010, 16:02:47 POSLE PODNE od Don Stone
 
Moji Radovi:
_________________________________________
_________________________________________