08.07.2016, 15:22
Hi This is my problem
--------------------------------
(26341) : error 017: undefined symbol "Total_House_Created"
(26343 -- 26344) : error 017: undefined symbol "Total_House_Created"
(26345) : warning 215: expression has no effect
(26345) : error 001: expected token: ";", but found "]"
(26345) : error 029: invalid expression, assumed zero
(26345) : error 029: invalid expression, assumed zero
(26345) : fatal error 107: too many error messages on one line
----------------------------------
This is my GM Code
-----------------------------
new query[256]
new h = Total_House_Created;
query[0] = (EOS);
mysql_format(handle, query, sizeof(query) ,"SELECT INTO `houses` (`hSQLID`,`hEntranceX`,`hEntranceY`,`hEntranceZ`,` hExitX`,`hExitY`,`hExitZ`,`hOwner`,`hValue`,`hInte rior`,`hLock`,`hOwned`,`hRent`,`Rentabil`,`gTalkin gs`,`hLevel`,`hWorld`,`hForosh`) VALUES (%d,%f,%f,%f,%f,%f,%f,'%e',%d,%d,%d,%d,%d,%d,%d,%d ,%d,%d)",
Total_House_Created,
hInfo[h][hEntranceX],
hInfo[h][hEntranceY],
hInfo[h][hEntranceZ],
hInfo[h][hExitX],
hInfo[h][hExitY],
hInfo[h][hExitZ],
hInfo[h][hOwner],
hInfo[h][hValue],
hInfo[h][hInt],
hInfo[h][hLock],
hInfo[h][hOwned],
hInfo[h][hRent],
hInfo[h][hTalkings],
hInfo[h][hLevel],
hInfo[h][hWorld],
hInfo[h][hForosh]);
mysql_query(handle ,gQuery);
format(gString, sizeof(gString), "House %d\nThis house is for sale\nPrice: {FFFFFF}$%s\n{0E9107}Level: {FFFFFF}%d\n{0E9107}To buy this house type /buyhouse.",h,FormatNumber(hInfo[h][hValue]),hInfo[h][hLevel]);
hInfo[h][hTextInfo] = CreateDynamic3DTextLabel(gString,0x0E9107FF,hInfo[house][hEntranceX], hInfo[house][hEntranceY], hInfo[house][hEntranceZ]+0.5,15, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 15.0);
--------------------------------
(26341) : error 017: undefined symbol "Total_House_Created"
(26343 -- 26344) : error 017: undefined symbol "Total_House_Created"
(26345) : warning 215: expression has no effect
(26345) : error 001: expected token: ";", but found "]"
(26345) : error 029: invalid expression, assumed zero
(26345) : error 029: invalid expression, assumed zero
(26345) : fatal error 107: too many error messages on one line
----------------------------------
This is my GM Code
-----------------------------
new query[256]
new h = Total_House_Created;
query[0] = (EOS);
mysql_format(handle, query, sizeof(query) ,"SELECT INTO `houses` (`hSQLID`,`hEntranceX`,`hEntranceY`,`hEntranceZ`,` hExitX`,`hExitY`,`hExitZ`,`hOwner`,`hValue`,`hInte rior`,`hLock`,`hOwned`,`hRent`,`Rentabil`,`gTalkin gs`,`hLevel`,`hWorld`,`hForosh`) VALUES (%d,%f,%f,%f,%f,%f,%f,'%e',%d,%d,%d,%d,%d,%d,%d,%d ,%d,%d)",
Total_House_Created,
hInfo[h][hEntranceX],
hInfo[h][hEntranceY],
hInfo[h][hEntranceZ],
hInfo[h][hExitX],
hInfo[h][hExitY],
hInfo[h][hExitZ],
hInfo[h][hOwner],
hInfo[h][hValue],
hInfo[h][hInt],
hInfo[h][hLock],
hInfo[h][hOwned],
hInfo[h][hRent],
hInfo[h][hTalkings],
hInfo[h][hLevel],
hInfo[h][hWorld],
hInfo[h][hForosh]);
mysql_query(handle ,gQuery);
format(gString, sizeof(gString), "House %d\nThis house is for sale\nPrice: {FFFFFF}$%s\n{0E9107}Level: {FFFFFF}%d\n{0E9107}To buy this house type /buyhouse.",h,FormatNumber(hInfo[h][hValue]),hInfo[h][hLevel]);
hInfo[h][hTextInfo] = CreateDynamic3DTextLabel(gString,0x0E9107FF,hInfo[house][hEntranceX], hInfo[house][hEntranceY], hInfo[house][hEntranceZ]+0.5,15, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 15.0);