Load cars from database error
#2

Quote:
Originally Posted by justjamie
Посмотреть сообщение
Hello.
When i compile this:
PHP код:
forward ToLoadCars(playerid);
public 
ToLoadCars(playerid);
{
new 
num_fields2,num_rows2;
cache_get_data(num_rows2,num_fields2,dbhandle);
if(
num_rows2==1)
{
for(new 
0sizeof(cInfo); i++)
{
cInfo[i][db_id] = cache_get_field_content_int(0,"id",dbhandle);
}
else
{
return 
1;
}

i get this error:
error 021: symbol already defined: "cache_get_data"

?? where does it come from
ok i changed this:
PHP код:
public ToLoadCars(playerid); 
to this:
PHP код:
public ToLoadCars(playerid
Now i get a fuckton of errors.
What did i do wrong?
It will compile perfectly when i remove this code.
Reply


Messages In This Thread
Load cars from database error - by justjamie - 26.05.2016, 14:50
Re: Load cars from database error - by justjamie - 26.05.2016, 14:56
Re: Load cars from database error - by Konstantinos - 26.05.2016, 14:57
Re: Load cars from database error - by iKevin - 26.05.2016, 14:59
Re: Load cars from database error - by justjamie - 26.05.2016, 14:59

Forum Jump:


Users browsing this thread: 2 Guest(s)