26.12.2010, 23:30
Код:
case 10:
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if (!IsPlayerInVehicle(i,stealcar))
{
SetAllPlayerCheckpoint(cwx,cwy,cwz,16.0,255);
SetVehicleParamsForPlayer(stealcar,i,1,0);
}
}
}
return 1;
}//case 10 closed. b) moving this line (bracket only) right before the return 1; would help aswell
//case 11: missing, there cant be a for(){} loop in a switch(){}, unless you place it in a case:{}
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if (!IsPlayerInVehicle(i, stealcar))
{//since its obvious that those 2 loops are showing 1 checkpoint to each player, i dont think they should be both in the same case 10:. add that case 11: mentioned above
SetPlayerCheckpoint(i,scx, scy, scz,5.0 );
SetVehicleParamsForPlayer(stealcar,i,1,0);
}
//SetAllPlayerCheckpoint(scx, scy, scz, 16.0, 255);
}
}
return 1;

