08.11.2011, 23:44
BUG DETECTED ALGUEM ME AJUDA PFPF ?Й O SEGUINTE MEU CHECKPOINT race Naum some quandu passa por ciima dele tiipo quandu eu do /partida aparece um checkpoint daii pego normal da quandu vai para o segundo naum funfa /=
coode
coode
pawn Код:
if (strcmp("/partida", cmdtext, true, 10) ==0)
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
SetPlayerRaceCheckpoint(i, 0, Check[0][0], Check[0][1], Check[0][2], Check[1][0], Check[1][1], Check[1][2],10);
Stats[i] = 1;
return 1;
}
}
}
pawn Код:
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
switch(Stats[playerid])
{
case 0:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[0][0], Check[0][1], Check[0][2], Check[1][0], Check[1][1], Check[1][2], 10);
Stats[i] = 0;
return 1;
}
case 1:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[1][0], Check[1][1], Check[1][2], Check[2][0], Check[2][1], Check[2][2], 10);
Stats[i] = 1;
return 1;
}
case 2:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[2][0], Check[2][1], Check[2][2], Check[3][0], Check[3][1], Check[3][2], 10);
Stats[i] = 2;
return 1;
}
case 3:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[3][0], Check[3][1], Check[3][2], Check[4][0], Check[4][1], Check[4][2], 10);
Stats[i] = 3;
return 1;
}
case 4:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[4][0], Check[4][1], Check[4][2], Check[4][0], Check[4][1], Check[4][2], 10);
Stats[i] = 4;
return 1;
}
case 5:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[5][0], Check[5][1], Check[5][2], Check[5][0], Check[5][1], Check[5][2], 10);
Stats[i] = 5;
return 1;
}
case 6:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[6][0], Check[6][1], Check[6][2], Check[6][0], Check[6][1], Check[6][2], 10);
Stats[i] = 6;
return 1;
}
case 8:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Check[7][0], Check[7][1], Check[7][2], Check[7][0], Check[7][1], Check[7][2], 10);
Stats[i] = 7;
return 1;
}
case 7:
{
DisablePlayerRaceCheckpoint(playerid);
GameTextForPlayer(playerid, "~g~Voce Ganhou a corrida parabein vooc ganhou 10000", 3000, 1);
GivePlayerMoney(playerid, 100000);
return 1;
}