MySQL R7 loading problem
#2

remove

if(exist[1] == 1)
{
print("Loaded");
cache_get_field_content(0,"Name",name);
}


pawn Код:
stock Load()
{
    new name[24];
    mysql_function_query(1,"SELECT `Name` FROM `jobs` WHERE `ID` = 1",true,"Loading","i",1);
}

forward Loading(id);
public Loading(id)
{
    cache_get_data(rows,fields);
    if(rows)
    {
        cache_get_field_content(0,"Name",name);
//continue code here, just transfer all variables with the function.. thats why it was made
    }
    return 1;
}
Reply


Messages In This Thread
MySQL R7 loading problem - by Tee - 18.06.2012, 02:10
Re: MySQL R7 loading problem - by Kar - 18.06.2012, 02:16
Re: MySQL R7 loading problem - by Tee - 18.06.2012, 02:28
Re: MySQL R7 loading problem - by AndreT - 18.06.2012, 07:29
Re: MySQL R7 loading problem - by Tee - 18.06.2012, 22:49

Forum Jump:


Users browsing this thread: 1 Guest(s)