pomoc

Započeo [CH]°°LøpεȤ°°[4EVER], Avgust 04, 2010, 20:27:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo napravio sam bandu sve ok i sada ocu ubacit tuning tj ubacim ga sve ubacim i kada idem tunirati pise mi ovo
You are not allowed to modify/tune this vehicle
vec se 2 sata mucim sa tim sranjetom i nmg rijesit a na drugom modu mi radi :S
pliz help

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Bez koda nista. Ali mogu probat na slijepo.

Jel si preselio array koji sadrži ideve vozila, ako nemas array kako odredujes koji se auto moze tunati?


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

eo kod komande
   if(strcmp(cmd,"/tuniraj",true)==0)
{
       if(PlayerToPoint(5.0,playerid, 1356.2876,-1628.0840,13.6099))
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
TogglePlayerControllable(playerid,false);
  ModCar(playerid);
}
else {
  return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
}
return 1;
}
return 0;
}

a evo modcar
forward ModCar(playerid);
public ModCar(playerid) {
switch(modelid[playerid]) {
/*
        case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
426, 547, 405, 409, 550, 566, 540, 421, 529,431,438,437,420,525,552,416,433,427,490,528,
407,544,470,598,596,599,601,428,499,609,524,578,486,406,573,455,588,403,514,423,
414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
        483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558: {
*/
            case 445,602,429,496,422,401,518,402,541,438,527,415,542,589,480,507,585,419,587,533,526,466,492,474,579,545,411,546,400,517,410,551,500,418,516,467,404,603,600,426,436,547,489,479,442,475,405,458,580,439,409,550,506,566,549,420,451,540,491,412,478,421,529,555,477,562,565,559,561,560,558,536,575,534,567,535,576: {
    ShowMenuForPlayer(TuningMenu, playerid);
//     TogglePlayerControllable(playerid,false);
SendClientMessage(playerid, COLOR_WHITE, "[INFO] Select an item and push the SPACEBAR to approve.");
}
default: SendClientMessage(playerid,COLOR_RED,"[WARNING] You are not allowed to modify/tune this vehicle");
}
return 1;
}

kad to upisem onda mi pise
You are not allowed to modify/tune this vehicle
:S
ajd ak os dodaj me na msn [email protected] mozda ce bit lakse
Poslednja Izmena: Avgust 04, 2010, 21:24:28 POSLE PODNE od °°LøpεȤ°°

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Hmm... pa kaže ti da nemoš tunirati auto jer si vozač, vjervovatno si stavio da vozač ne može tunirat :P tako sam povezo ovo dvoje :D :


if(playerstate == PLAYER_STATE_DRIVER) {

SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");

Citat: °°LøpεȤ°° poslato Avgust 04, 2010, 21:16:36 POSLE PODNE
eo kod komande
kad to upisem onda mi pise
You cannot modify/tune a car unless you are the driver
:S
ajd ak os dodaj me na msn [email protected] mozda ce bit lakse

if(strcmp(cmd,"/tuniraj",true)==0)
{
        if(PlayerToPoint(5.0,playerid, 1356.2876,-1628.0840,13.6099))
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
TogglePlayerControllable(playerid,false);
  ModCar(playerid);
}
else

{
SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
}
return 1;
}


Probaj ovako: http://pastebin.com/BPFgD5K6
Mysterious roleplay

Citat: [CH] Elmedinâ,,¢ poslato Avgust 04, 2010, 21:23:08 POSLE PODNE
Hmm... pa kaže ti da nemoš tunirati auto jer si vozač, vjervovatno si stavio da vozač ne može tunirat :P tako sam povezo ovo dvoje :D :


if(playerstate == PLAYER_STATE_DRIVER) {

SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
to je da moze SAMO vozac***
Poslednja Izmena: Avgust 04, 2010, 21:34:57 POSLE PODNE od °°LøpεȤ°°

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....