25.03.2011, 19:07
hey scripters
I get this error
error 047: array sizes do not match, or destination array is too small
the command
the variable
I tried to make pUnit to [256] but its still doing it.
I get this error
error 047: array sizes do not match, or destination array is too small
the command
Код:
dcmd_unitset(playerid, params[]) { new id,unit[32]; if(!sscanf(params,"us[32]",id,unit)) { if(PlayerInfo[playerid][pCop] > 5) { PlayerInfo[id][pUnit] = unit; }else return SendClientMessage(playerid,COLOR_AFOR,"Your rank doesnt allow you to use this tools !"); }else return SendClientMessage(playerid,COLOR_RED,"Usage : /unitset [PLAYERID][UNITNAME]"); return 1; }
Код:
enum pInfo{ pCop, pUnit[56], }