paskal
gtaoffline.pl
Wiek: 29 Na forum: 5643 dni Posty: 242
Piwa : 341
Witam
Zrobi?em w?asne prawo jazdy oto funkcje:
Kod: new Float:CheckpointsCoordsMotor[26][3] =
{
{-2091.6924,-122.6468,34.9096},//motor1
{-2090.9658,-161.3672,34.9161},//motor2
{-2090.4988,-228.0319,34.9175},//motor3
{-2091.0537,-275.7007,34.9143},//motor4
{-2081.7651,-120.8990,35.0829},//osobowka5
{-2080.6431,-149.3714,35.0848},//osobowka6
{-2080.7151,-167.9622,35.0836},//osobowka7
{-2080.6978,-186.6062,35.0834},//osobowka8
{-2081.0850,-206.3452,35.0835},//osobowka9
{-2080.5586,-225.2503,35.0854},//osobowka10
{-2080.8777,-243.1245,35.0836},//osobowka11
{-2082.1016,-273.3093,35.0816},//osobowka12
{-2072.5964,-117.9342,35.4474},//vany13
{-2073.1533,-149.7184,35.4306},//vany14
{-2071.8381,-184.3844,35.4399},//vany15
{-2060.8511,-207.3827,35.4411},//vany16
{-2060.1155,-241.2444,35.4348},//vany17
{-2051.8987,-275.5197,35.4465},//vany18
{-2038.9104,-227.2590,35.4418},//vany19
{-2062.3042,-120.4642,35.9323},//Tiry20
{-2062.2759,-151.2128,35.9260},//Tiry21
{-2061.6833,-183.2881,35.9268},//Tiry22
{-2060.2695,-216.2884,35.9273},//Tiry23
{-2060.2603,-247.0665,35.9276},//Tiry24
{-2052.6357,-274.2679,35.9320},//Tiry25
{-2038.5818,-229.8455,35.9285}//Tiry26
};
a tu funkcja z kt?r? jest problem:
Kod: CurCheckpointMotor[playerid]++;
switch(CurCheckpointMotor[playerid]){
case 5..12 - 2:
SetPlayerRaceCheckpoint(playerid, 0, CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][0], CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][1], CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][2], CheckpointsCoordsMotor[CurCheckpointMotor[playerid] + 1][0], CheckpointsCoordsMotor[CurCheckpointMotor[playerid] + 1][1], CheckpointsCoordsMotor[CurCheckpointMotor[playerid] + 1][2], 8.0/*rozmiar zale?y od ciebie, 8.0 to rozmiar auta*/);
case 12 - 5:
SetPlayerRaceCheckpoint(playerid, 1, CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][0], CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][1], CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][2], CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][0], CheckpointsCoordsMotor[CurCheckpointMotor[playerid]][1], CheckpointsCoordsMotor[CurCheckpointMotor[playerid] ][2], 8.0/*rozmiar zale?y od ciebie, 8.0 to rozmiar auta*/);
}
if(CurCheckpointMotor[playerid] >= 12)
{
zdalosobowka[playerid] = 1;
ShowPlayerDialog(playerid, 31, DIALOG_STYLE_MSGBOX, "Informacja!!!", "Zda?e? prawo jazdy.\nKategoria: B\nGratulujemy sukcesu.", "OK", "");
DisablePlayerRaceCheckpoint(playerid);
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
}
error:
Kod: C:\DOCUME~1\PASKAL\Pulpit\SAMP0~1.3ER\GAMEMO~1\truck.pwn(3858) : error 040: duplicate "case" label (value 7)
linijka z b??dem:
Kod:
Za pomoc piwko