22.12.2009, 12:37
Quote:
Originally Posted by Jay_
Will there be a mysql_fetch_field_row fix anytime soon?
|
Originally Posted by Jay_
Will there be a mysql_fetch_field_row fix anytime soon?
|
Originally Posted by michael2572
Why does mysql_fetch_row_format() crash the server if the row string is longer than 200?
|
Originally Posted by »Julian™«
I cba to look thrue 33 pages so im asking , If i'm transfering my PEN LS Edit to MYSQL How to make a save system? You know so it saves in DB not in .INI or i need to leave it as it is?
|
Originally Posted by »Julian™«
I cba to look thrue 33 pages so im asking , If i'm transfering my PEN LS Edit to MYSQL How to make a save system? You know so it saves in DB not in .INI or i need to leave it as it is?
|
public LoadVehicles()
{
CheckSQL();
new resultline[256],vehid,sqlid,model,Float:x,Float:y,Float:z,Float:angle,col1,col2,type,price,ownerid;
mysql_query("SELECT * FROM `vehicles`");
mysql_store_result();
while(mysql_fetch_row_format(resultline,"|") == 1)
{
sscanf(resultline,"p|ddffffddddd",sqlid,model,x,y,z,angle,col1,col2,type,price,ownerid);
vehid = CreateVehicle(model,x,y,z,angle,col1,col2,-1);
vInfo[vehid][vSQLId] = sqlid;
vInfo[vehid][vModelId] = model;
vInfo[vehid][vPos_X] = x;
vInfo[vehid][vPos_Y] = y;
vInfo[vehid][vPos_Z] = z;
vInfo[vehid][vPos_A] = angle;
vInfo[vehid][vColor1] = col1;
vInfo[vehid][vColor2] = col2;
vInfo[vehid][vBuyAble] = type;
vInfo[vehid][vPrice] = price;
vInfo[vehid][vOwnerId] = ownerid;
}
mysql_free_result();
return 1;
}
Originally Posted by Hipster
[17:14:24] Loading plugin: mysql.so
[17:14:24] Failed (libmysqlclient.so.15: wrong ELF class: ELFCLASS64) [17:14:24] Loaded 0 plugins. [17:14:24] [17:14:24] Filter Scripts [17:14:24] --------------- [17:14:24] Loaded 0 filter scripts. [17:14:24] Script[gamemodes/tbl_dc.amx]: Run time error 19: "File or function is not found" CentOs 64 bit , Please help |
case 'f':
{
new changestr[16], changepos = 0, strpos = stringPos;
while(changepos < 16 && string[strpos] && string[strpos] != delim)
{
changestr[changepos++] = string[strpos++];
}
changestr[changepos] = '\0';
setarg(paramPos,0,_:floatstr(changestr));
}
new BizzName[500];
format(query,sizeof(query),"SELECT name FROM bizz WHERE id='%i'",i);
mysql_query(query);
mysql_store_result();
BizzName[i] = mysql_fetch_row(line);
printf("Business %s loaded. Owner: %4s",BizzName[i]);
new BizzName[your max businesses][length of string];
Originally Posted by MenaceX^
It should be
pawn Код:
|
BizzName[i][length of string] = mysql_fetch_row(line);
native mysql_fetch_row_format(string[],const delimiter[] = "|"); #define mysql_fetch_row(%1) mysql_fetch_row_format(%1," ")
mysql_fetch_row(BizzName[i]);