Help with this txt
#1

Hiya guys im using this fof my jobhelp but how can i carry it on to ad mutiple jobs, sorry for this stuped post but evertime i try and edit it i get errors as u can see this is pjob 1 so how can i ad pjob2 and so on

Regards Krytan

[quote]forward JobHelp(playerid, time, block);
public JobHelp(playerid, time, block)
{
switch(PlayerInfo[playerid][pJob])
{
case 1:
switch(block)
{
case 0:
{
SendClientMessage(playerid, COLOR_GREEN, "text here.");
SendClientMessage(playerid, COLOR_YELLOW, "text here .");
SendClientMessage(playerid, COLOR_YELLOW, "text here.");
}
case 1:
{
SendClientMessage(playerid, COLOR_GREEN, "text here.");
SendClientMessage(playerid, COLOR_YELLOW, "text here .");
SendClientMessage(playerid, COLOR_YELLOW, "text here.");
}
default: return true; //the default need to be added else this function will repeat and repeat :S
}
default: return SendClientMessage(playerid, COLOR_YELLOW, "Jobid isnt defined! Please report this to an admin!");
}
return SetTimerEx("JobHelp", time, false, "ddd", playerid, time, block + 1);
}
Reply
#2

Didn't read the code due to not posting the error, First show up the error and the correct line.
Reply
#3

no if took it out for now but what i would like to no is how to carry this on in the proper manner for up 2 20 jobs this is pjob 1 so how do i link the next string for pjob2 correctly?

Regards krytan
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)