22.03.2013, 17:42
The question is how could it be done?
And is it even possible to do like that?
And here is the errors:
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 2)
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Error line:
CMD:removeattachedobject(playerid, aoe_str);
So here is my code :
And is it even possible to do like that?
And here is the errors:
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 2)
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Error line:
CMD:removeattachedobject(playerid, aoe_str);
So here is my code :
pawn Код:
case AOED_REMOVE_SLOT:
{
if(response) {
format(aoe_str, sizeof(aoe_str), "%i", listitem);
CMD:removeattachedobject(playerid, aoe_str);
}
else {
SendClientMessage(playerid, COLOR_MAGENTA, "* Usage: /removeattachedobject <AttachedObjectSlot>");
SendClientMessage(playerid, COLOR_WHITE, "** Allows you to remove your attached object from specified attached object slot/index number");
}
}