29.12.2012, 17:27
hello guys i just needed some help i want to make a command using zcmd setjob using "wJob" so when i /setjob it says
"Syntax: [playerid] [jobid] and if he types a playerid and job id it gives them the job using wJob and if its not a right id it will return with a message saying "unknown id" i hope thats not to much to ask for btw i only have 2 job ids and heres the code i currently was using.
"Syntax: [playerid] [jobid] and if he types a playerid and job id it gives them the job using wJob and if its not a right id it will return with a message saying "unknown id" i hope thats not to much to ask for btw i only have 2 job ids and heres the code i currently was using.
Код:
new string[128], giveplayerid, wJob; if(sscanf(params, "ud", giveplayerid, wJob)) return SendClientMessage(playerid, 0xAFAFAFFA, "USAGE: /setjob [playerid] [jobid]"); if(IsPlayerConnected(giveplayerid)) { wJob[playerid] > (giveplayerid)