13.07.2016, 16:55
Hello Guys. Can Some One Help Me To Change SQL settings in this script to SQL r39 please. I Really Need this.
Thanks
PHP код:
==================== ERROR ==================
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1202) : error 035: argument type mismatch (argument 1)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1203) : error 017: undefined symbol "mysql_store_result"
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1204) : error 017: undefined symbol "mysql_num_rows"
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1206) : error 017: undefined symbol "mysql_num_rows"
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1208) : error 017: undefined symbol "mysql_fetch_row"
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1249) : error 017: undefined symbol "mysql_free_result"
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1257) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1258) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1259) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1260) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1261) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1262) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1263) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1264) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1265) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1266) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1267) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1268) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1269) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1270) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1271) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1272) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1273) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1274) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1275) : error 035: argument type mismatch (argument 2)
D:\1-ADMIN-ar cashaloo\Desktop\0DAN AWYOBILI\gamemodes\test.pwn(1276) : error 035: argument type mismatch (argument 2)
===============================
PHP код:
================== SCRIPT CODE =========================
stock SaveProperty(i)
{
new query[600];
new string[128];
query = "UPDATE `house` SET ";
strcat(query, sizeof(query), "hEntrancex", HouseInfo[i][hEntrancex]);
strcat(query, sizeof(query), "hEntrancey", HouseInfo[i][hEntrancey]);
strcat(query, sizeof(query), "hEntrancez", HouseInfo[i][hEntrancez]);
strcat(query, sizeof(query), "hExitx", HouseInfo[i][hExitx]);
strcat(query, sizeof(query), "hExity", HouseInfo[i][hExity]);
strcat(query, sizeof(query), "hExitz", HouseInfo[i][hExitz]);
strcat(query, sizeof(query), "hOwner", HouseInfo[i][hOwner]);
strcat(query, sizeof(query), "hValue", HouseInfo[i][hValue]);
strcat(query, sizeof(query), "hHel", HouseInfo[i][hHel]);
strcat(query, sizeof(query), "hInt", HouseInfo[i][hInt]);
strcat(query, sizeof(query), "hLock", HouseInfo[i][hLock]);
strcat(query, sizeof(query), "hOwned", HouseInfo[i][hOwned]);
strcat(query, sizeof(query), "hVec", HouseInfo[i][hVec]);
strcat(query, sizeof(query), "hVcol1", HouseInfo[i][hVcol1]);
strcat(query, sizeof(query), "hVcol2", HouseInfo[i][hVcol2]);
strcat(query, sizeof(query), "hKlass", HouseInfo[i][hKlass]);
strcat(query, sizeof(query), "hVehSost", HouseInfo[i][hVehSost]);
strcat(query, sizeof(query), "hCarx", HouseInfo[i][hCarx]);
strcat(query, sizeof(query), "hCary", HouseInfo[i][hCary]);
strcat(query, sizeof(query), "hCarz", HouseInfo[i][hCarz]);
strcat(query, sizeof(query), "hCarc", HouseInfo[i][hCarc]);
strdel(query, strlen(query)-1, strlen(query));
format(string,sizeof(string)," WHERE `hID` = '%d'",HouseInfo[i][hID]);
strcat(query, string);
mysql_query(query);
}