Skripta koju koristim:cyber
Detaljan opis problema:dodao sam medu cpove npr za bigrace ili nesta da pise prolaz 1 i ime igraca e sad pise prolaz i to to oke ali kad pise ime igraca pise samo : i nema imena evo tog dijela
format(string, sizeof(string), "Event |BigRace|Prolaz 1: %s", name);
SendClientMessageToAll(ZELENA, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1365.0367,2665.2587,50.7815,8.0); } i cp je ok samo ime ne pokazuje di sam pogrijesio
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Postaj kod tamo gdje uzimaÅ¡ igraÄevo ime i kako si ga definirao.
ne kontam te'
ovo stavi u zadnji cp trebalo bi radit...
new ime[MAX_PLAYER_NAME];
GetPlayerName(playerid, ime, sizeof(ime));
format(string, sizeof(string), "Event |BigRace|Prolaz 1: %s",ime);
SendClientMessage(i,COLOR_BLUE , string);
Citat: ivica 156 poslato Januar 13, 2012, 22:08:27 POSLE PODNE
ne kontam te'
format(string, sizeof(string), "Event |BigRace|Prolaz 1: %s", name);
Stavi ime a ne name.
ovo sto si mi dao jel mogu bilo gdje
i jel moram ja to stalno tak stavljat ili da stavim na jedno mjesto
vako sam stavio i baca mi ove errore
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(9323) : error 017: undefined symbol "ime"
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(9326) : error 017: undefined symbol "ime"
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(9330) : error 017: undefined symbol "ime"
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(9334) : error 017: undefined symbol "ime"
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(9334) : error 017: undefined symbol "ime"
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(9334) : error 029: invalid expression, assumed zero
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(9334) : fatal error 107: too many error messages on one line
evo tog di su cpovi
else if(CP[playerid] == 387) { CP[playerid] = 388; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-364.6090,2496.1599,36.8136,8.0); }
else if(CP[playerid] == 388) { CP[playerid] = 389; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-788.9424,2729.0493,44.3456,8.0); }
else if(CP[playerid] == 389) { CP[playerid] = 390; PlayerPlaySound(playerid, 1138, 0, 0, 0);format(string, sizeof(string), "Event |BigRace|Prolaz 1: %s",ime);SendClientMessageToAll(ZELENA, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1365.0367,2665.2587,50.7815,8.0); }
else if(CP[playerid] == 390) { CP[playerid] = 391; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1858.2248,2567.6323,49.0252,8.0); }
else if(CP[playerid] == 391) { CP[playerid] = 392; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1979.6059,2241.7529,13.9751,8.0); }
else if(CP[playerid] == 392) { CP[playerid] = 393; PlayerPlaySound(playerid, 1138, 0, 0, 0); format(string, sizeof(string), "Event |BigRace|Prolaz 2: %s",ime);SendClientMessageToAll(ZELENA, string);DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1693.7696,1825.0837,24.3249,8.0); }
else if(CP[playerid] == 393) { CP[playerid] = 394; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1088.6164,1819.4421,44.9209,8.0); }
else if(CP[playerid] == 394) { CP[playerid] = 395; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-882.9649,1973.3375,59.1991,8.0); }
else if(CP[playerid] == 395) { CP[playerid] = 396; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-380.9212,2064.8374,60.0365,8.0); }
else if(CP[playerid] == 396) { CP[playerid] = 397; PlayerPlaySound(playerid, 1138, 0, 0, 0); format(string, sizeof(string), "Event |BigRace|Prolaz 3: %s",ime);SendClientMessageToAll(ZELENA, string);DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-424.5469,1789.5358,69.6292,8.0); }
else if(CP[playerid] == 397) { CP[playerid] = 398; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-429.6339,1447.0419,33.2849,8.0); }
else if(CP[playerid] == 398) { CP[playerid] = 399; PlayerPlaySound(playerid, 1138, 0, 0, 0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-302.3605,1511.3699,74.39770,8.0); }
else if(CP[playerid] == 399)//Kraj racea
GetPlayerName(playerid, ime, sizeof(ime));
new ime[MAX_PLAYER_NAME];
Ja bih te samo upozorio da si prekršio osnovno pravilo foruma - TP - Triple Post , ovo ti je već par puta pazi se da te administracija ne kazni ;)
Pa moraš definirat ime iznad svih cp-ova.
znaci stavim to samo iznad bas svih cpova ili samo tih sto sam tu dao
hvala ti puno radi mi .... :))
moze lock!!!!