(ERRO): Me ajudem
#1

ERRO: Bom quando eu entro no ъltimo "CHECKPOINT" ele nгo aparece nada....
Era para aparecer (EXEMPLO): • %s(%d) Terminou o Rally ! • .
Mais nгo aparece me ajudem!!
Olhem o cуdigo abaixo:
pawn Code:
new checkcorrida[MAX_PLAYERS];
new Float:ChecksAvenida[17][3] = {
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas}
};


if(strcmp(cmdtext,"/entrarcorrida",true)==0)
{
checkcorrida[playerid] = 0;
SetPlayerRaceCheckpoint(playerid, 0, ChecksAvenida[checkcorrida[playerid]][0], ChecksAvenida[checkcorrida[playerid]][1], ChecksAvenida[checkcorrida[playerid]][2], ChecksAvenida[checkcorrida[playerid] + 1][0], ChecksAvenida[checkcorrida[playerid] + 1][1], ChecksAvenida[checkcorrida[playerid] + 1][2], 8.0);
return 1;
}




public OnPlayerEnterRaceCheckpoint(playerid)
{
DisablePlayerRaceCheckpoint(playerid);
if(checkcorrida[playerid] == 17)
{
new stringx[50];
DisablePlayerCheckpoint(playerid);
format(stringx, sizeof stringx, "• %s(%d) Terminou o Rally ! •",Nome,playerid);
SendClientMessageToAll(Branco,stringx);
DisablePlayerRaceCheckpoint(playerid);
checkcorrida[playerid] = 0;
return 1;
}
else
{
checkcorrida[playerid] ++;
SetPlayerRaceCheckpoint(playerid, 0, ChecksAvenida[checkcorrida[playerid]][0], ChecksAvenida[checkcorrida[playerid]][1], ChecksAvenida[checkcorrida[playerid]][2], ChecksAvenida[checkcorrida[playerid] + 1][0], ChecksAvenida[checkcorrida[playerid] + 1][1], ChecksAvenida[checkcorrida[playerid] + 1][2], 8.0);
return 1;
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)