12.05.2012, 03:55
i have job script from other peoples and when i type /takejob ingame, it will start job but it will also say "unknown command" rite after. i never happen in 0.3d only 0.3e. how to fix? this is my code:
pawn Код:
YCMD:takejob(playerid,params[],help)
{
#pragma unused help
#pragma unused params
new id = GetJobID(playerid);
if(id == -1) return SCM(playerid,COLOR_RED,"ERROR: You Are Not Near Any Job Opportunities.");
if(P_Data[playerid][pJob] != 0) return SCM(playerid,COLOR_RED,"ERROR: You Already Have A Job!");
SendFormatMSG(playerid,-1,"You Have Joined The Job {E0941B}%s. Type /startjob To Start The Job.",Job[id][Name]);
P_Data[playerid][pJob] = id;
return 1;
}