Problem with compile
#1

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);
Reply
#2

replace this: new query[256] with this:
PHP код:
new query[256]; 
at the end of that u are missing ;
Reply
#3

Im Replace This
Press f5 to Compile get this error
--------------------------------------



(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
Reply
#4

can you give me following lines: 26341, 26343, 26344, 26345
Reply
#5

26341 = new h = Total_House_Created;
26343 = 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)",
26344 = Total_House_Created,
26345 = hInfo[h][hEntranceX]
Reply
#6

Hmm, looks like problem is more above, can you give me whole function of that, whole code of that part of script?
Reply
#7

First of post
i write it !
Reply
#8

Quote:
Originally Posted by Decurse
Посмотреть сообщение
First of post
i write it !
give me more from above...
Reply
#9

if(mpop[playerid] == 5566) {
TogglePlayerControllable(playerid, 0);
}
if(Cancele[playerid] == 1) {
SelectTextDraw(playerid, 0x00FF00FF); // Allow the player to select textdraws with the mouse cursor
}
if(OnMashinKharidan[playerid] == 1) {
SetPlayerCameraPos(playerid, -1958.9172, 257.9527, 38.7022);
SetPlayerCameraLookAt(playerid, -1957.9890, 258.3209, 38.2272);
SelectTextDraw(playerid, 0x00FF00FF); // Allow the player to select textdraws with the mouse cursor
}
if(GodmodeFeature[playerid] == true) {
SetPlayerKhoon(true, playerid, 100000);
}
Reply
#10

no-one can help me ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)