17.08.2009, 22:06
Quote:
Originally Posted by nuriel8833
Good work
tanks |
Quote:
Originally Posted by GforceNL
Hi iff planted it in my Gamemode but i get this errors:
Код:
(216) : error 047: array sizes do not match, or destination array is too small (219) : error 047: array sizes do not match, or destination array is too small Код:
new cmd[128]; new idx; cmd = strtok(cmdtext, idx); if (!strcmp(cmd, "/holder", true)) { cmd = strtok(cmdtext, idx); new model = strval(cmd); SetHolderWeapon(playerid, model); return 1; } if (!strcmp(cmd, "/remove", true)) { RemoveHolderWeapon(playerid); return 1; } |
because i edited the strok a bit, because i used it for commands, so with the default strok, 128 cells are wasted.
So copy my strtok to your gamemode rename it with strtok_command or something, and edit the thing in the holder commands
In the next update there is no need of strtok, because i will use dcmd.