What's the problem in this CMD?
#4

Try debugging.
pawn Код:
CMD:produkte(playerid, params[])
{
    print("1");
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Moras biti logovan da bi koristio ovu komandu.");
    print("2");
    if(PlayerInfo[playerid][pJob] != JOB_PRODUKTE && PlayerInfo[playerid][pVIPJob] != JOB_PRODUKTE) return SendClientMessage(playerid, COLOR_GREY, "{FAFAFA}[{FFD200}INFO:{FAFAFA}] Ti nisi vozac za {00B9FF}Produkte{FAFAFA}.");
    print("3");
    if(ProduCar(prodCar))  return SendClientMessage(playerid, COLOR_GREY, "Moras biti u vozilo da bi koristio ovu komandu.");
    ProdJob[playerid] = 1;
    print("4");
    SetPlayerCheckpoint(playerid,Produkti1,11);
    print("5");
    SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Tvoju Poslu je da dostavis produkte u magacinu.");
    print("6");
    return 1;
}
Compile this, and execute the command in game. Now check the console, and check the code after the last number that appeared.
Reply


Messages In This Thread
What's the problem in this CMD? - by GBLTeam - 24.12.2013, 19:48
Re: What's the problem in this CMD? - by Zamora - 24.12.2013, 20:10
Re: What's the problem in this CMD? - by GBLTeam - 25.12.2013, 17:56
Re: What's the problem in this CMD? - by Jstylezzz - 25.12.2013, 17:59
Re: What's the problem in this CMD? - by GBLTeam - 25.12.2013, 19:24

Forum Jump:


Users browsing this thread: 2 Guest(s)