23.02.2015, 09:48
HI, I have been looking at multiple ways to do this but i cannot figure out why it will not work.
This is the code
In game it says "You named your job: " and it just stays blank. What am i doing wrong. I have searched and searched but cannot figure it out..
PS it compiles fine
This is the code
Код:
CMD:createjob(playerid, params[]) { new jobname; new string[128]; if(isnull(params)) return SendClientMessage(playerid, COLOR_RED1, "ERROR: /createquest <jobname>"); { if (sscanf(params, "c", jobname)) { format(string, sizeof(string), "You named your job: %s", jobname); SendClientMessage(playerid, COLOR_RED1, string); return 1; } } return 1; }
PS it compiles fine