evo jedno pitanjce

Započeo Kiki_Radeon, Jun 15, 2010, 23:59:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

evo ovako
if(strcmp(cmd, "/ruta1", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pJob] == 16)
{
    if(PlayerOnMission[playerid] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Trenutno ste na misiji, nemozete koristiti ovu komandu !");
        return 1;
    }
        if(PlayerInfo[playerid][pRuta1] == 0)
        {
            GameTextForPlayer(playerid, "~w~Prenesite naftu iz ~r~San Fierra", 5000, 1);
            CP[playerid] = 30;
            SetPlayerCheckpoint(playerid, -1805.9058,64.5985,14.7246,8.0);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   Vec ste prenjeli posiljku,pricekajte da vas reload time prode (600)s !");
        }
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Niste vozac kamiona !");
}
}//not connected
return 1;
}


checkpointi
if(CP[playerid] == 16)//ruta 1
{
GameTextForPlayer(playerid, "~w~Poceli ste prevozit  ~n~~r~Naftu", 5000, 1);
DisablePlayerCheckpoint(playerid);
CP[playerid] = 108;
SetPlayerCheckpoint(playerid, -1805.9058,64.5985,14.7246,8.0);
RemovePlayerFromVehicle(playerid);
}
if(CP[playerid] == 108) { CP[playerid] = 109; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1805.9058,64.5985,14.7246,8.0); }//RUTA 1
else if(CP[playerid] == 109) { CP[playerid] = 110; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1802.2156,-159.4107,8.0942,8.0); }//RUTA 2
else if(CP[playerid] == 110) { CP[playerid] = 111; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1815.5449,-404.1072,15.7815,8.0); }//RUTA 3
else if(CP[playerid] == 111) { CP[playerid] = 112; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1819.4063,-568.6556,16.1037,8.0); }//ruta 4
else if(CP[playerid] == 112) { CP[playerid] = 113; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1764.5992,-630.5197,17.4039,8.0); }//RUTA 5
else if(CP[playerid] == 113) { CP[playerid] = 114; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1692.5559,-760.0424,39.7682,8.0); }//ruta 6
else if(CP[playerid] == 114) { CP[playerid] = 115; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1526.9343,-818.5987,56.5874,8.0); }//ruta 7
else if(CP[playerid] == 115) { CP[playerid] = 116; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1349.2634,-817.8057,77.2705,8.0); }//ruta 8
else if(CP[playerid] == 116) { CP[playerid] = 117; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1171.9075,-659.8380,44.9968,8.0); }//Ruta 9
else if(CP[playerid] == 117) { CP[playerid] = 118; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1103.8671,-501.3656,32.1262,8.0); }//ruta 10
else if(CP[playerid] == 118)//Kraj rute 1
    {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Prevezli ste naftu i zaradili $1000.");
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 1000);
CP[playerid] = 0;
PlayerInfo[playerid][pRuta1] = 100;
}


evo to je poso kamiondzija upisem /ruta 1 i krenem dodem do prvog checkpointa i prodem ga, a drugi checkpoint mi nije tamo di sam ga stavio, vec na drugom kraju grada, odem do njega na maloj mapi je nacrtan i svijetli crveno, a ispred mene ga nema... moze pomoc ima kakva greska, sve sam napravio samo eto nesto s tim checkpointima :S

omfg...
pa jel ti gledas ponekad svoj kod? :S...
u komandi si stavio CP[playerid]=30;...
a u OnPlayerEnterCheckpoint si stavio if(CP[playerid]==16);...

Citat: Sam ãƒ,, poslato Jun 16, 2010, 10:04:39 PRE PODNE
omfg...
pa jel ti gledas ponekad svoj kod? :S...
u komandi si stavio CP[playerid]=30;...
a u OnPlayerEnterCheckpoint si stavio if(CP[playerid]==16);...

sry kasno je bilo xD hvala probat cu xD

Poslednja Izmena: Jun 16, 2010, 13:33:53 POSLE PODNE od Kiki_Radeon