28.02.2009, 15:03
i have this script:
and i have this error:
so what is problem on this?
Code:
new cmd[128]; new tmp[128]; new idx; new giveplayername[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; new string[128]; cmd = strtok(cmdtext,idx); // Line 1881 for(new i = 0; i < GetMaxPlayers(); i++) { if (IsPlayerConnected(i)) { if (AccountInfo[i][AdminLevel] > 0 && ViewCmds[i] == 1) { for(new v = 0; v < sizeof(ViewCommands); v++) if (!strcmp(cmdtext, ViewCommands[v], true)) { GetPlayerName(playerid, sendername, sizeof sendername); format(tmp, 128, "[VIEWCMDS] [%d]%s: %s", playerid, sendername, cmdtext); SendClientMessage(i, PURPLE, tmp); } } } }
Code:
G:\samp\1111.pwn(1881) : error 047: array sizes do not match, or destination array is too small