29.08.2011, 07:57
(
Последний раз редактировалось Cjgogo; 29.08.2011 в 09:01.
Причина: Forgot details!!!
)
pawn Код:
new CPTL1;
new CPTL2;
new CPTR1;
new CPTL3;
new CPFW1;
new CPTL4;
new CPTR2;
new CPFW2;
new CPTL5;
new FNCP;
public OnPlayerEnterDynamicRaceCP(playerid,checkpointid)
{
if(checkpointid == CPTL1) return DestroyDynamicRaceCP(CPTL1) && CPTL2 = CreateDynamicRaceCP(0,-2521.5483,1080.5056,55.6387,-2527.1306,569.7551,14.2614,2.0,-1,-1,-1,60.0);
if(checkpointid == CPTL2) return DestroyDynamicRaceCP(CPTL2) && CPTR1 = CreateDynamicRaceCP(0,-2527.1306,569.7551,14.2614,-2748.5134,567.6544,14.2010,2.0,-1,-1,-1,60.0);
if(checkpointid == CPTR1) return DestroyDynamicRaceCP(CPTR1) && CPTL3 = CreateDynamicRaceCP(0,-2748.5134,567.6544,14.2010,-2705.9546,314.2898,3.9802,2.0,-1,-1,-1,60.0);
if(checkpointid == CPTL3) return DestroyDynamicRaceCP(CPTL3) && CPFW1 = CreateDynamicRaceCP(0,-2705.9546,314.2898,3.9802,-2706.7883,163.5176,4.0700,2.0,-1,-1,-1,60.0);
if(checkpointid == CPFW1) return DestroyDynamicRaceCP(CPFW1) && CPTL4 = CreateDynamicRaceCP(0,-2706.7883,163.5176,4.0700,-2252.5396,320.5182,34.9710,2.0,-1,-1,-1,60.0);
if(checkpointid == CPTL4) return DestroyDynamicRaceCP(CPTL4) && CPTR2 = CreateDynamicRaceCP(0,-2252.5396,320.5182,34.9710,-2251.9275,140.9347,34.9724,2.0,-1,-1,-1,60.0);
if(checkpointid == CPTR2) return DestroyDynamicRaceCP(CPTR2) && CPFW2 = CreateDynamicRaceCP(0,-2251.9275,140.9347,34.9724,-2257.1306,-59.0355,34.9718,2.0,-1,-1,-1,60.0);
if(checkpointid == CPFW2) return DestroyDynamicRaceCP(CPFW2) && CPTL5 = CreateDynamicRaceCP(0,-2257.1306,-59.0355,34.9718,-2048.0027,-97.0938,34.9680,2.0,-1,-1,-1,60.0);
if(checkpointid == CPTL5) return DestroyDynamicRaceCP(CPTL5) && FNCP = CreateDynamicRaceCP(1,-2048.0027,-97.0938,34.9680,-2048.0027,-97.0938,34.9680,2.0,-1,-1,-1,60.0);
if(checkpointid == FNCP)
{
new vehicleid=GetPlayerVehicleID(playerid);
if(gFailed[playerid] == 1) return GivePlayerMoney(playerid,200) && DestroyVehicle(vehicleid) && SendClientMessage(playerid,COLOR_RED,"You failed,come back to claim your license later");
if(gFailed[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREEN,"Congratulation,you passed the test,you have now a driving-license,and can explore the roads,without being afraid of cops");
PlayerPlaySound(playerid,1098,0,0,0);
GivePlayerMoney(playerid,500);
new string[128];
format(string,sizeof(string),"Statistics:Your time was %d seconds,congratulatione,you would be a fast cop",countn4);
if(countn4 < 180) return KillTimer(counttimer4);
}
}
return 1;
}
Код:
D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(615) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(616) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(617) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(618) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(619) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(620) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(621) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(622) : error 022: must be lvalue (non-constant) D:\Jocuri\GTA\GTA SA\GTA San Andreas\samp03csvr_R5_win32\gamemodes\sfcnr.pwn(623) : error 022: must be lvalue (non-constant) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase