Variable in Enum request
#1

Hello everyone,

Got a little problem. I created a command so I can read player variables:

pawn Код:
CMD:debug(playerid, params[])
{
    new user, param[10];
    sscanf(params, "us[10]", user, param);
    new message[100];
    format(message, sizeof(message), "Userid: %i   Param: %s   Value: %s", user, param, playerinfo[user][param]);
    SendClientMessage(playerid, COLOR_GREY, message);
    return 1;
}
Sad enough I get the error: error 033: array must be indexed (variable "param"). Any ideas?

Thanks!

Bas
Reply


Messages In This Thread
Variable in Enum request - by baske007 - 14.08.2011, 16:24
AW: Variable in Enum request - by samtey - 14.08.2011, 16:25
Re: Variable in Enum request - by baske007 - 14.08.2011, 16:26
AW: Variable in Enum request - by samtey - 14.08.2011, 16:28
Re: Variable in Enum request - by baske007 - 14.08.2011, 16:29
Re: Variable in Enum request - by Michael@Belgium - 14.08.2011, 16:47
Re: Variable in Enum request - by baske007 - 14.08.2011, 16:50
Re: Variable in Enum request - by Michael@Belgium - 14.08.2011, 16:53
Re: Variable in Enum request - by baske007 - 14.08.2011, 16:55
Re: Variable in Enum request - by Michael@Belgium - 14.08.2011, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)