23.02.2015, 15:01
Код:
CMD:createjob(playerid, params[]) { new jobname[35]; new string[128]; if(sscanf(params, "s[35]", jobname)) return SendClientMessage(playerid, COLOR_RED1, "ERROR: /createquest <jobname>"); format(string, sizeof(string), "You named your job: %s", jobname); SendClientMessage(playerid, COLOR_RED1, string); return 1; }
Also s is appropriate for strings.
EDIT: missed the size!