10.07.2013, 17:44
Hello! I want to add command in my gm which allows user to change name of his business. This is for the name:
Name of business must not be larger than 24 chars, and when I added command for change name:
I got an error which says that array sizes do not match, or or destination array is too small. How can I remove that error?
Код:
enum bizInfo { . . bName[24] } // under stock loadbiz() ... format(BizInfo[idx][bName], 24, "%s", binfo[13]);
Код:
// just part of the code if(sscanf(params, "s[24]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bizname [name]"); BizInfo[idx][bName] = params;