15.07.2018, 13:46
Here I Get Five Errors :
here I Get One Error :
Here I Get The eight 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} |
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} |
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} |