ondra852 0 Odesláno: 8. Únor, 2009 Share Odesláno: 8. Únor, 2009 Ahoj lidi, pořebuju poradit, jak přidat pod jeden závod další, asi jsem lama, ale nějak mi to nejde, tak prosím poraďte: public OnPlayerEnterCheckpoint(playerid) { switch(CP[playerid]) { case CP1:{ DisablePlayerCheckpoint(playerid); CP[playerid] = CP2; SetPlayerCheckpoint(playerid,-2429.593,-598.984,132.357,5.0); } case CP2:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2466.343,-496.000,104.124,5.0); CP[playerid] = CP3; } case CP3:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2536.392,-490.412,81.814,5.0); CP[playerid] = CP4; } case CP4:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2625.740,-502.203,70.001,5.0); CP[playerid] = CP5; } case CP5:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2596.093,-470.292,67.634,5.0); CP[playerid] = CP6; } case CP6:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2486.069,-440.357,77.658,5.0); CP[playerid] = CP7; } case CP7:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2408.887,-417.249,84.045,5.0); CP[playerid] = CP8; } case CP8:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2373.973,-437.323,81.201,5.0); CP[playerid] = CP9; } case CP9:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2325.504,-458.881,79.218,5.0); CP[playerid] = CP10; } case CP10:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2345.694,-413.500,78.804,5.0); CP[playerid] = CP11; } case CP11:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2376.088,-380.441,75.737,5.0); CP[playerid] = CP12; } case CP12:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2421.985,-371.042,71.985,5.0); CP[playerid] = CP13; } case CP13:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2543.186,-367.442,53.645,5.0); CP[playerid] = CP14; } case CP14:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2665.451,-405.006,31.552,5.0); CP[playerid] = CP15; } case CP15:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2672.520,-473.133,24.524,5.0); CP[playerid] = CP16; } case CP16:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2692.672,-528.627,13.945,5.0); CP[playerid] = CP17; } case CP17:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2777.649,-493.214,6.385,5.0); CP[playerid] = CP18; } case CP18:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2822.195,-431.478,6.235,5.0); CP[playerid] = CP19; } case CP19:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2815.041,-331.308,6.235,5.0); CP[playerid] = CP20; } case CP20:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2785.902,-328.500,6.235,5.0); CP[playerid] = CP21; } case CP21:{ DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2767.825,-301.957,6.235,5.0); CP[playerid] = CP22; } case CP22:{ DisablePlayerCheckpoint(playerid); } } } Jak přidam pod tohle další začátek závodu ? Link to comment Share on other sites More sharing options...
0 undertaker 10 Odesláno: 8. Únor, 2009 Share Odesláno: 8. Únor, 2009 jednoduse nahoru si dej treba define cekpoint1 atd .... a pak to budes psat jak tam akorat tak jak to mas nadefinovany ale ja to mam v modu upe jinak ale to ted resit nebudu nadlouho :mrgreen: Link to comment Share on other sites More sharing options...
0 ondra852 0 Odesláno: 8. Únor, 2009 Author Share Odesláno: 8. Únor, 2009 No ok, ale jestli by mi to mohl někdo ukázat, jak to mam ukončit kolik těch } a { jsem ai fakt lama, ale nějak se mi to nedaří, pořád to mam špatně. Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 8. Únor, 2009 Share Odesláno: 8. Únor, 2009 tak isto ako to mas akurat anmiesto CP daj napr Checkpoint Link to comment Share on other sites More sharing options...
0 ondra852 0 Odesláno: 8. Únor, 2009 Author Share Odesláno: 8. Únor, 2009 Ale já potřebuju vědět, jak ten první závod ukončim, těma } a { aby mi pod to šel dát další Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 8. Únor, 2009 Share Odesláno: 8. Únor, 2009 Ako Mas } } } TAk prve dve Nechaj a ta treita bude vzdy posledna v publicu a pred nu dvaj dalsi race Link to comment Share on other sites More sharing options...
0 ondra852 0 Odesláno: 9. Únor, 2009 Author Share Odesláno: 9. Únor, 2009 JJ, dík tohle jsem nemohl najít. Link to comment Share on other sites More sharing options...
Dotaz
ondra852 0
Ahoj lidi, pořebuju poradit, jak přidat pod jeden závod další, asi jsem lama, ale nějak mi to nejde, tak prosím poraďte:
public OnPlayerEnterCheckpoint(playerid)
{
switch(CP[playerid]) {
case CP1:{
DisablePlayerCheckpoint(playerid);
CP[playerid] = CP2;
SetPlayerCheckpoint(playerid,-2429.593,-598.984,132.357,5.0);
}
case CP2:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2466.343,-496.000,104.124,5.0);
CP[playerid] = CP3;
}
case CP3:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2536.392,-490.412,81.814,5.0);
CP[playerid] = CP4;
}
case CP4:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2625.740,-502.203,70.001,5.0);
CP[playerid] = CP5;
}
case CP5:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2596.093,-470.292,67.634,5.0);
CP[playerid] = CP6;
}
case CP6:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2486.069,-440.357,77.658,5.0);
CP[playerid] = CP7;
}
case CP7:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2408.887,-417.249,84.045,5.0);
CP[playerid] = CP8;
}
case CP8:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2373.973,-437.323,81.201,5.0);
CP[playerid] = CP9;
}
case CP9:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2325.504,-458.881,79.218,5.0);
CP[playerid] = CP10;
}
case CP10:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2345.694,-413.500,78.804,5.0);
CP[playerid] = CP11;
}
case CP11:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2376.088,-380.441,75.737,5.0);
CP[playerid] = CP12;
}
case CP12:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2421.985,-371.042,71.985,5.0);
CP[playerid] = CP13;
}
case CP13:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2543.186,-367.442,53.645,5.0);
CP[playerid] = CP14;
}
case CP14:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2665.451,-405.006,31.552,5.0);
CP[playerid] = CP15;
}
case CP15:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2672.520,-473.133,24.524,5.0);
CP[playerid] = CP16;
}
case CP16:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2692.672,-528.627,13.945,5.0);
CP[playerid] = CP17;
}
case CP17:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2777.649,-493.214,6.385,5.0);
CP[playerid] = CP18;
}
case CP18:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2822.195,-431.478,6.235,5.0);
CP[playerid] = CP19;
}
case CP19:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2815.041,-331.308,6.235,5.0);
CP[playerid] = CP20;
}
case CP20:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2785.902,-328.500,6.235,5.0);
CP[playerid] = CP21;
}
case CP21:{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2767.825,-301.957,6.235,5.0);
CP[playerid] = CP22;
}
case CP22:{
DisablePlayerCheckpoint(playerid);
}
}
}
Jak přidam pod tohle další začátek závodu ?
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now