25.12.2013, 17:59
Try debugging.
Compile this, and execute the command in game. Now check the console, and check the code after the last number that appeared.
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;
}