MDC System Problem
#9

Quote:
Originally Posted by Macronix
Посмотреть сообщение
Because you use it in your command?
The name variable just checks that the name the player types is valid and then looks for that name in the "characters" table; character names are saved under "character".

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
try this

pawn Код:
public OnMDCLookup(playerid, name[])
{
    new msg[128];
    new rows, fields;
        MDCLookup(playerid, strval(msg));
    cache_get_data(rows, fields);
    if(rows < 1)
    {
        SendClientMessage(playerid, COLOR_GREY, "No records found.");
        return 1;
    }
    cache_get_row(0, 0, msg);
    return 1;
}
I'm not sure how your code works but I am pretty sure that you first need to SELECT the data before getting it in rows.
That didn't work :/
Reply


Messages In This Thread
Number of arguments does not match definition - by Luke_James - 25.07.2015, 14:43
AW: MDC System Problem - by Macronix - 25.07.2015, 16:44
Re: MDC System Problem - by Luke_James - 25.07.2015, 17:04
AW: MDC System Problem - by Macronix - 25.07.2015, 17:24
Re: MDC System Problem - by Luke_James - 25.07.2015, 17:49
AW: MDC System Problem - by Macronix - 25.07.2015, 17:59
Re: MDC System Problem - by Luke_James - 25.07.2015, 18:01
AW: MDC System Problem - by Macronix - 25.07.2015, 18:06
Re: AW: MDC System Problem - by Luke_James - 25.07.2015, 18:19
Re: AW: MDC System Problem - by Luke_James - 25.07.2015, 18:24

Forum Jump:


Users browsing this thread: 3 Guest(s)