6 Errors, Any Help
#1

Hello,
I Have Jusr Download A Filterscript Thats Called xRobbery And It Will Look Awsome If I Add It In My Server

But I Had A Problem With Compile It I Add All The Includes But It Not Work Any Help ?


Quote:

C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(43) : warning 213: tag mismatch
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(44) : error 017: undefined symbol "ALL"
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(45) : warning 213: tag mismatch
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(57) : warning 213: tag mismatch
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(59) : warning 213: tag mismatch
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(346) : warning 213: tag mismatch
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(451) : warning 213: tag mismatch
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(453) : warning 213: tag mismatch
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(466) : error 017: undefined symbol "cache_get_value_name_int"
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(467) : error 017: undefined symbol "cache_get_value_name_float"
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(46 : error 017: undefined symbol "cache_get_value_name_float"
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(469) : error 017: undefined symbol "cache_get_value_name_float"
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(470) : error 017: undefined symbol "cache_get_value_name_float"
C:\Users\FluctusFight\Desktop\samp037_svr_R2-1-1_win32\filterscripts\xRobbery.pwn(494) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Reply
#2

tag mismatch means you are using string where you need float, or int where you need float, or 3DText, where you should be using Player3DText, or textdraws etc.

Undefined symbol ALL means you use ALL, but you haven't actually defined it to mean anything to the compiler.

The undefined mysql section is because you are using outdated methods in your gamemode, compared to the include/plugin you have installed, or that the gamemode uses the plugin, and references the function, but doesn't have the include added into the gamemode.
Reply
#3

Here I Get Five Errors :
Quote:

43 : warning 213: tag mismatch
44 : error 017: undefined symbol "ALL"
45 : warning 213: tag mismatch
57 : warning 213: tag mismatch
59 : warning 213: tag mismatch

Quote:

39public OnFilterScriptInit()
40{
41 print("[xRobbery MySql] Connecting to database...");
42
43 mysqlB = mysql_connect(SQL_HOST, SQL_USER, SQL_PASSWORD, SQL_DBNAME);
44 mysql_log(ALL);
45 if (mysql_errno(mysqlB) == 0) print("[xRobbery MySql] Connection successful!");
46 else print("[xRobbery MySql] The connection has failed!\n\n[!!! xVehicle v2 couldn't init !!!]\n\n");
47
48 mysql_query(mysqlB, "CREATE TABLE IF NOT EXISTS `xRob_Safes` (\
49 `ID` int(11) NOT NULL,\
50 `X` float NOT NULL default '0',\
51 `Y` float NOT NULL default '0',\
52 `Z` float NOT NULL default '0',\
53 `A` float NOT NULL default '0',\
54 PRIMARY KEY (`ID`),\
55 UNIQUE KEY `ID_2` (`ID`),\
56 KEY `ID` (`ID`)\
57 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
58
59 mysql_tquery(mysqlB, "SELECT * FROM `xRob_Safes`", "LoadxSafes");
60 return 1;
61}

here I Get One Error :
Quote:

346 : warning 213: tag mismatch

Quote:

335CMD:deletesafe(playerid, params[])
336{
337 new sid;
338 if(sscanf(params, "d", sid)) return SendClientMessage(playerid, -1, "{F0AE0F}KULLANIM: {FFFB93}/deletesafe {ECB021}[Safe ID]");
339 if(!Iter_Contains(xSafes, sid)) return SendClientMessage(playerid, -1, "{FF0000}[!] {F0AE0F}Safe can't be found!");
340 Iter_Remove(xSafes, sid);
341 if(xSafe[sid][safe_Durum] == 3) Delete3DTextLabel(xSafe[sid][safe_Label]);
342 DestroyObject(xSafe[sid][safe_Obj]);
343 KillTimer(xSafe[sid][safe_Timer]);
344 new str[128];
345 format(str, sizeof(str), "DELETE FROM `xrob_safes` WHERE `ID`=%d", sid);
346 mysql_query(mysqlB, str);
347 format(str, sizeof(str), "{00FF00}[!] {FFFB93}You have succesfully deleted Safe {ECB021}#%d", sid);
348 SendClientMessage(playerid, -1, str);
349 return 1;
350}

Here I Get The eight Errors :
Quote:

451 : warning 213: tag mismatch
453 : warning 213: tag mismatch
466 : error 017: undefined symbol "cache_get_value_name_int"
467 : error 017: undefined symbol "cache_get_value_name_float"
468 : error 017: undefined symbol "cache_get_value_name_float"
469 : error 017: undefined symbol "cache_get_value_name_float"
470 : error 017: undefined symbol "cache_get_value_name_float"
494 : warning 213: tag mismatch

Quote:

447SavexSafe(safeid)
448{
449 new query[128];
450
451 mysql_format(mysqlB, query, sizeof(query), "UPDATE `xRob_Safes` SET X=%f, Y=%f, Z=%f, A=%f WHERE ID=%d",
452 xSafe[safeid][safe_Pos][0], xSafe[safeid][safe_Pos][1], xSafe[safeid][safe_Pos][2], xSafe[safeid][safe_Pos][3], safeid);
453 mysql_query(mysqlB, query);
454 return 1;
455}
456
457forward LoadxSafes();
458public LoadxSafes()
459{
460 new rows = cache_num_rows();
461 new id, loaded;
462 if(rows)
463 {
464 while(loaded < rows)
465 {
466 cache_get_value_name_int(loaded, "ID", id);
467 cache_get_value_name_float(loaded, "X", xSafe[id][safe_Pos][0]);
468 cache_get_value_name_float(loaded, "Y", xSafe[id][safe_Pos][1]);
469 cache_get_value_name_float(loaded, "Z", xSafe[id][safe_Pos][2]);
470 cache_get_value_name_float(loaded, "A", xSafe[id][safe_Pos][3]);
471
472 xSafe[id][safe_Obj] = CreateObject(2332, xSafe[id][safe_Pos][0], xSafe[id][safe_Pos][1], xSafe[id][safe_Pos][2], 0.0, 0.0, xSafe[id][safe_Pos][3]);
473
474 Iter_Add(xSafes, id);
475 loaded++;
476 }
477 }
478 printf("[xRobbery] %d kasa yuklendi.", loaded);
479 return 1;
480}

Reply
#4

The script uses mysql R40+ and you included a version between R33 and R39. Get the latest from github.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)