Some Errors in my Stock
#1

PHP код:
stock getFreeFraktAutoDBid()
{
    new 
pAuto,maxautos,data[256],query[256];
    
format(query,sizeof(query),"SELECT id FROM FraktionsCars ORDER by id DESC");
    
mysql_function_query(dbhandle,query,false,"","");
    
mysql_store_result();
    if(
mysql_num_rows()>0)
    {
        
data cache_get_field_content_int(0,"id",dbhandle);
        
//mysql_fetch_field("id",data);
        
maxautos=strval(data);
    }
    
mysql_free_result();
    for(new 
i=1i<=maxautos+1i++)
    {
        
format(query,sizeof(query),"SELECT id FROM FraktionsCars WHERE id='%i'",i);
        
mysql_function_query(dbhandle,query,false,"","");
        
mysql_store_result();
        if(
mysql_num_rows()==0)
        {
            
pAuto=i;
            return 
pAuto;
        }
    }
    return 
pAuto;

Errors:
PHP код:
C:\Users\asdasd\Desktop\SAMP Kunden\DevdogVideos\gamemodes\script.pwn(1890) : error 033: array must be indexed (variable "data"
(Im Trying to make a stock from mysql r7( (?) to r8(?) so there new natives)
Reply


Messages In This Thread
[MySQL] Get Free CarID Error - by HellYeah - 15.12.2013, 14:10
Re: Some Errors in my Stock - by Chenko - 15.12.2013, 15:33
AW: Re: Some Errors in my Stock - by HellYeah - 15.12.2013, 15:39
Re: Some Errors in my Stock - by Chenko - 15.12.2013, 15:45
AW: Some Errors in my Stock - by HellYeah - 15.12.2013, 16:03
AW: Re: Some Errors in my Stock - by HellYeah - 15.12.2013, 16:31
AW: Some Errors in my Stock - by HellYeah - 15.12.2013, 18:26
Re: Some Errors in my Stock - by Chenko - 16.12.2013, 00:42
Re: Some Errors in my Stock - by HellYeah - 16.12.2013, 07:21
AW: Some Errors in my Stock - by HellYeah - 17.12.2013, 17:03

Forum Jump:


Users browsing this thread: 3 Guest(s)