Problema na HORA DE COMPILAR! Acho que й simples
#10

Quote:
Originally Posted by ManoLexuS
Посмотреть сообщение
Tenta ae:
Код:
if(strcmp(cmd, "/home", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pPHousekey] != 255)
{
if(PlayerOnMission[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
return 1;
}
else
{
SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancez], 4.0);
GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
}
}     
else               
{    
GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
}
}
return 1;
}
Nгo testei, mas acho que tб certo. Espero ter ajudado.
Obrigado vo ver aqui
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)