Fusher
-
Posts
9 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Posts posted by Fusher
-
-
@EquiNox Multumesc!
-
Salutare! Din plictiseala m-am gandit sa fac un FS, mai exact un Gun Shop.
Imagini
Cand tastezi /buygun si nu esti in Gun Shop: http://i.imgur.com/kwglaiE.jpg
Comanda /buygun: http://i.imgur.com/xjgPQCl.jpg
Mesaj cand nu ai bani pentru a cumpara o arma: http://i.imgur.com/T9Lsqwp.jpg
Mesaj dupa ce ai cumparat arma din Gun Shop: http://i.imgur.com/f2ip9k3.jpg
Mapa: http://i.imgur.com/mOWOYJ0.jpg || http://i.imgur.com/4u7hzPQ.jpg
Download
.pwn -> http://www.solidfiles.com/d/a3c89b0ea8/GS.pwn
.amx -> http://www.solidfiles.com/d/4abab1ab67/GS.amx
pastebin -> http://pastebin.com/zix3x672
- 4
-
Excelent tutorialul. Felicitari pentru munca depusa si pentru interes.
-
Ai host sau e deschis din PC ?
In PC.
-
Problema intalnita (descriere): Problema la baza de date. Am reusit s-o bag in phpmyadmin, totul bine si frumos dar nu mi se deschide serverul.
Ero(area / rile) / warning-(ul / urile):
<html><head><title>MySQL Plugin log</title><style>table {border: 1px solid black; border-collapse: collapse; line-height: 23px; table-layout: fixed; width: 863px;}th, td {border: 1px solid black; word-wrap: break-word;}thead {background-color: #C0C0C0;} tbody {text-align: center;} table.left1 {position: relative; left: 36px;} table.left2 {position: relative; left: 72px;} .time {width: 80px;} .func {width: 200px;} .stat {width: 75px;} .msg {width: 400px;} </style> <script> var LOG_ERROR = 1, LOG_WARNING = 2, LOG_DEBUG = 4; var FirstRun = true, IsCallbackActive = false, IsTableOpen = false, IsThreadActive = false; function StartCB(cbname) { StartTable(1, 0, cbname); } function EndCB() { EndTable(); IsCallbackActive = false; } function StartTable(iscallback, isthreaded, cbname) { if(IsTableOpen == true || isthreaded != IsThreadActive) EndTable(); if(iscallback == true) { document.write( "<table class=left2>" + "<th bgcolor=#C0C0C0 >In callback ""+cbname+""</th>" + "</table>" ); } document.write("<table"); if(iscallback == true || (isthreaded != IsThreadActive && isthreaded == false && IsCallbackActive == true) ) { document.write(" class=left2"); IsCallbackActive = true; } else if(isthreaded == true) document.write(" class=left1"); IsThreadActive = isthreaded; document.write(">"); if(FirstRun == true) { FirstRun = false; document.write("<thead><th class=time>Time</th><th class=func>Function</th><th class=stat>Status</th><th class=msg>Message</th></thead>"); } document.write("<tbody>"); IsTableOpen = true; } function EndTable() { document.write("</tbody></table>"); IsTableOpen = false; } function Log(time, func, status, msg, isthreaded) { isthreaded = typeof isthreaded !== 'undefined' ? isthreaded : 0; if(IsTableOpen == false || isthreaded != IsThreadActive) StartTable(false, isthreaded, ""); var StatColor, StatText; switch(status) { case LOG_ERROR: StatColor = "RED"; StatText = "ERROR"; break; case LOG_WARNING: StatColor = "#FF9900"; StatText = "WARNING"; break; case LOG_DEBUG: StatColor = "#00DD00"; StatText = "OK"; break; } document.write( "<tr bgcolor="+StatColor+">" + "<td class=time>"+time+"</td>" + "<td class=func>"+func+"</td>" + "<td class=stat>"+StatText+"</td>" + "<td class=msg>"+msg+"</td>" + "</tr>" ); } </script></head><body bgcolor=grey> <h2>Logging started at 20:10, 11.01.2015</h2><script> Log("20:10:39","CMySQLConnection::Connect",4,"establishing connection to database...",1); Log("20:10:39","CMySQLConnection::Connect",4,"establishing connection to database...",1); Log("20:10:39","CMySQLConnection::Connect",4,"establishing connection to database...",1); Log("20:10:39","CMySQLConnection::Connect",4,"connection was successful",1); Log("20:10:39","CMySQLConnection::Connect",4,"auto-reconnect has been enabled",1); Log("20:10:39","CMySQLConnection::Connect",4,"connection was successful",1); Log("20:10:39","CMySQLConnection::Connect",4,"auto-reconnect has been enabled",1); Log("20:10:39","CMySQLConnection::Connect",4,"connection was successful",1); Log("20:10:39","CMySQLConnection::Connect",4,"auto-reconnect has been enabled",1); Log("20:10:39","mysql_format",4,"connection: 1, len: 256, format: "SELECT * FROM `players` WHERE `username` = '%e'"",0); Log("20:10:39","mysql_tquery",4,"connection: 1, query: "SELECT * FROM `players` WHERE `username` = 'Dj_Nexotronix'", callback: "WhenAccountCheck", format: "i"",0); Log("20:10:39","CMySQLQuery::Execute[WhenAccountCheck]",4,"starting query execution",1); Log("20:10:39","CMySQLQuery::Execute[WhenAccountCheck]",4,"query was successfully executed within 0.817 milliseconds",1); Log("20:10:39","CMySQLResult::CMySQLResult()",4,"constructor called",1); StartCB("WhenAccountCheck");Log("20:10:39","cache_get_data",4,"connection: 1",0); Log("20:10:39","CMySQLResult::~CMySQLResult()",4,"deconstructor called",0); EndCB();Log("20:10:39","mysql_format",4,"connection: 1, len: 256, format: "SELECT * FROM `players` WHERE `username` = '%e'"",0); Log("20:10:39","mysql_tquery",4,"connection: 1, query: "SELECT * FROM `players` WHERE `username` = 'BarGirl'", callback: "WhenAccountCheck", format: "i"",0); Log("20:10:39","CMySQLQuery::Execute[WhenAccountCheck]",4,"starting query execution",1); Log("20:10:39","CMySQLQuery::Execute[WhenAccountCheck]",4,"query was successfully executed within 0.602 milliseconds",1); Log("20:10:39","CMySQLResult::CMySQLResult()",4,"constructor called",1); StartCB("WhenAccountCheck");Log("20:10:39","cache_get_data",4,"connection: 1",0); Log("20:10:39","CMySQLResult::~CMySQLResult()",4,"deconstructor called",0); EndCB();Log("20:10:39","mysql_format",4,"connection: 1, len: 256, format: "SELECT * FROM `players` WHERE `username` = '%e'"",0); Log("20:10:39","mysql_tquery",4,"connection: 1, query: "SELECT * FROM `players` WHERE `username` = 'Administrator'", callback: "WhenAccountCheck", format: "i"",0); Log("20:10:39","CMySQLQuery::Execute[WhenAccountCheck]",4,"starting query execution",1); Log("20:10:39","CMySQLQuery::Execute[WhenAccountCheck]",4,"query was successfully executed within 0.811 milliseconds",1); Log("20:10:39","CMySQLResult::CMySQLResult()",4,"constructor called",1); StartCB("WhenAccountCheck");Log("20:10:39","cache_get_data",4,"connection: 1",0); Log("20:10:39","CMySQLResult::~CMySQLResult()",4,"deconstructor called",0); EndCB();Log("20:11:20","mysql_format",4,"connection: 1, len: 256, format: "SELECT * FROM `players` WHERE `username` = '%e'"",0); Log("20:11:20","mysql_tquery",4,"connection: 1, query: "SELECT * FROM `players` WHERE `username` = 'WiDuAlK'", callback: "WhenAccountCheck", format: "i"",0); Log("20:11:20","CMySQLQuery::Execute[WhenAccountCheck]",4,"starting query execution",1); Log("20:11:20","CMySQLQuery::Execute[WhenAccountCheck]",4,"query was successfully executed within 1.489 milliseconds",1); Log("20:11:20","CMySQLResult::CMySQLResult()",4,"constructor called",1); StartCB("WhenAccountCheck");Log("20:11:20","cache_get_data",4,"connection: 1",0); Log("20:11:20","cache_get_field_content",4,"row: 0, field_name: "LastLogin", connection: 1, max_len: 256",0); Log("20:11:20","CMySQLResult::GetRowDataByName",4,"row: '0', field: "LastLogin", data: "2015-01-11 20:04:04"",0); Log("20:11:20","CMySQLResult::~CMySQLResult()",4,"deconstructor called",0); EndCB();Log("20:11:27","mysql_escape_string",4,"source: "parkour01", connection: 1, max_len: 64",0); Log("20:11:27","mysql_format",4,"connection: 1, len: 256, format: "SELECT * FROM `players` WHERE `username`='%e' AND `password`='%e'"",0); Log("20:11:27","mysql_tquery",4,"connection: 1, query: "SELECT * FROM `players` WHERE `username`='WiDuAlK' AND `password", callback: "WhenPlayerLogin", format: "i"",0); Log("20:11:27","CMySQLQuery::Execute[WhenPlayerLogin]",4,"starting query execution",1); Log("20:11:27","CMySQLQuery::Execute[WhenPlayerLogin]",4,"query was successfully executed within 1.280 milliseconds",1); Log("20:11:27","CMySQLResult::CMySQLResult()",4,"constructor called",1); StartCB("WhenPlayerLogin");Log("20:11:27","cache_get_data",4,"connection: 1",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "password", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "password", data: "PARKOUR01"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Level", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Level", data: "1"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "AdminLevel", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "AdminLevel", data: "6"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "HelperLevel", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "HelperLevel", data: "0"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Cash", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Cash", data: "300"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Account", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Account", data: "500"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Email", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Email", data: "[email protected]"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Registred", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Registred", data: "1"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Tutorial", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Tutorial", data: "1"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Sex", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Sex", data: "1"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Age", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Age", data: "15"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "PhoneNumber", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "PhoneNumber", data: "7373009"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "PremiumAccount", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "PremiumAccount", data: "0"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Banned", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Banned", data: "0"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Warns", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Warns", data: "0"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Leader", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Leader", data: "8"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Member", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Member", data: "8"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Rank", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Rank", data: "6"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "Skin", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Skin", data: "115"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "RespectPoint", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "RespectPoint", data: "0"",0); Log("20:11:27","cache_get_field_content",4,"row: 0, field_name: "IP", connection: 1, max_len: 256",0); Log("20:11:27","CMySQLResult::GetRowDataByName",4,"row: '0', field: "IP", data: "25.129.144.2"",0); Log("20:11:27","mysql_format",4,"connection: 1, len: 256, format: "UPDATE `players` SET `Cash`='%d' WHERE `username`='%e'"",0); Log("20:11:27","mysql_query",4,"connection: 1, query: "UPDATE `players` SET `Cash`='300' WHERE `username`='WiDuAlK'", use_cache: true",0); Log("20:11:27","CMySQLQuery::Execute",4,"starting query execution",0); Log("20:11:27","CMySQLQuery::Execute",4,"query was successfully executed within 0.896 milliseconds",0); Log("20:11:27","CMySQLResult::CMySQLResult()",4,"constructor called",0); Log("20:11:27","CMySQLHandle::SaveActiveResult",4,"cache saved (id: 1)",0); Log("20:11:27","mysql_format",4,"connection: 1, len: 256, format: "UPDATE `players` SET `LastLogin`= CURRENT_TIMESTAMP WHERE `username`='%e'"",0); Log("20:11:27","mysql_query",4,"connection: 1, query: "UPDATE `players` SET `LastLogin`= CURRENT_TIMESTAMP WHERE `usern", use_cache: true",0); Log("20:11:27","CMySQLQuery::Execute",4,"starting query execution",0); Log("20:11:27","CMySQLQuery::Execute",4,"query was successfully executed within 0.772 milliseconds",0); Log("20:11:27","CMySQLResult::CMySQLResult()",4,"constructor called",0); Log("20:11:27","CMySQLHandle::SaveActiveResult",4,"cache saved (id: 2)",0); Log("20:11:27","mysql_format",4,"connection: 1, len: 256, format: "UPDATE `players` SET `IP`='%e' WHERE `username`='%e'"",0); Log("20:11:27","mysql_query",4,"connection: 1, query: "UPDATE `players` SET `IP`='25.129.144.2' WHERE `username`='WiDuA", use_cache: true",0); Log("20:11:27","CMySQLQuery::Execute",4,"starting query execution",0); Log("20:11:27","CMySQLQuery::Execute",4,"query was successfully executed within 0.468 milliseconds",0); Log("20:11:27","CMySQLResult::CMySQLResult()",4,"constructor called",0); Log("20:11:27","CMySQLHandle::SaveActiveResult",4,"cache saved (id: 3)",0); EndCB();Log("20:13:03","mysql_format",4,"connection: 1, len: 256, format: "SELECT * FROM `players` WHERE `username` = '%e'"",0); Log("20:13:03","mysql_tquery",4,"connection: 1, query: "SELECT * FROM `players` WHERE `username` = 'WiDuAlK'", callback: "WhenAccountCheck", format: "i"",0); Log("20:13:03","CMySQLQuery::Execute[WhenAccountCheck]",4,"starting query execution",1); Log("20:13:03","CMySQLQuery::Execute[WhenAccountCheck]",4,"query was successfully executed within 1.382 milliseconds",1); Log("20:13:03","CMySQLResult::CMySQLResult()",4,"constructor called",1); StartCB("WhenAccountCheck");Log("20:13:03","cache_get_data",4,"connection: 1",0); Log("20:13:03","cache_get_field_content",4,"row: 0, field_name: "LastLogin", connection: 1, max_len: 256",0); Log("20:13:03","CMySQLResult::GetRowDataByName",4,"row: '0', field: "LastLogin", data: "2015-01-11 20:11:27"",0); Log("20:13:03","CMySQLResult::~CMySQLResult()",4,"deconstructor called",0); EndCB();Log("20:13:08","mysql_escape_string",4,"source: "parkour01", connection: 1, max_len: 64",0); Log("20:13:08","mysql_format",4,"connection: 1, len: 256, format: "SELECT * FROM `players` WHERE `username`='%e' AND `password`='%e'"",0); Log("20:13:08","mysql_tquery",4,"connection: 1, query: "SELECT * FROM `players` WHERE `username`='WiDuAlK' AND `password", callback: "WhenPlayerLogin", format: "i"",0); Log("20:13:08","CMySQLQuery::Execute[WhenPlayerLogin]",4,"starting query execution",1); Log("20:13:08","CMySQLQuery::Execute[WhenPlayerLogin]",4,"query was successfully executed within 1.7 milliseconds",1); Log("20:13:08","CMySQLResult::CMySQLResult()",4,"constructor called",1); StartCB("WhenPlayerLogin");Log("20:13:08","cache_get_data",4,"connection: 1",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "password", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "password", data: "PARKOUR01"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Level", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Level", data: "1"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "AdminLevel", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "AdminLevel", data: "6"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "HelperLevel", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "HelperLevel", data: "0"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Cash", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Cash", data: "300"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Account", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Account", data: "500"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Email", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Email", data: "[email protected]"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Registred", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Registred", data: "1"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Tutorial", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Tutorial", data: "1"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Sex", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Sex", data: "1"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Age", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Age", data: "15"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "PhoneNumber", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "PhoneNumber", data: "7373009"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "PremiumAccount", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "PremiumAccount", data: "0"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Banned", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Banned", data: "0"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Warns", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Warns", data: "0"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Leader", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Leader", data: "8"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Member", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Member", data: "8"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Rank", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Rank", data: "6"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "Skin", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "Skin", data: "115"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "RespectPoint", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "RespectPoint", data: "0"",0); Log("20:13:08","cache_get_field_content",4,"row: 0, field_name: "IP", connection: 1, max_len: 256",0); Log("20:13:08","CMySQLResult::GetRowDataByName",4,"row: '0', field: "IP", data: "25.129.144.2"",0); Log("20:13:08","mysql_format",4,"connection: 1, len: 256, format: "UPDATE `players` SET `Cash`='%d' WHERE `username`='%e'"",0); Log("20:13:08","mysql_query",4,"connection: 1, query: "UPDATE `players` SET `Cash`='300' WHERE `username`='WiDuAlK'", use_cache: true",0); Log("20:13:08","CMySQLQuery::Execute",4,"starting query execution",0); Log("20:13:08","CMySQLQuery::Execute",4,"query was successfully executed within 1.127 milliseconds",0); Log("20:13:08","CMySQLResult::CMySQLResult()",4,"constructor called",0); Log("20:13:08","CMySQLHandle::SaveActiveResult",4,"cache saved (id: 4)",0); Log("20:13:08","mysql_format",4,"connection: 1, len: 256, format: "UPDATE `players` SET `LastLogin`= CURRENT_TIMESTAMP WHERE `username`='%e'"",0); Log("20:13:08","mysql_query",4,"connection: 1, query: "UPDATE `players` SET `LastLogin`= CURRENT_TIMESTAMP WHERE `usern", use_cache: true",0); Log("20:13:08","CMySQLQuery::Execute",4,"starting query execution",0); Log("20:13:08","CMySQLQuery::Execute",4,"query was successfully executed within 0.570 milliseconds",0); Log("20:13:08","CMySQLResult::CMySQLResult()",4,"constructor called",0); Log("20:13:08","CMySQLHandle::SaveActiveResult",4,"cache saved (id: 5)",0); Log("20:13:08","mysql_format",4,"connection: 1, len: 256, format: "UPDATE `players` SET `IP`='%e' WHERE `username`='%e'"",0); Log("20:13:08","mysql_query",4,"connection: 1, query: "UPDATE `players` SET `IP`='25.129.144.2' WHERE `username`='WiDuA", use_cache: true",0); Log("20:13:08","CMySQLQuery::Execute",4,"starting query execution",0); Log("20:13:08","CMySQLQuery::Execute",4,"query was successfully executed within 0.430 milliseconds",0); Log("20:13:08","CMySQLResult::CMySQLResult()",4,"constructor called",0); Log("20:13:08","CMySQLHandle::SaveActiveResult",4,"cache saved (id: 6)",0); EndCB();</script>[13:33:40] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [14:46:14] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [18:37:17] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [13:14:34] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [20:05:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [14:34:36] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [09:16:03] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [21:59:26] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:20:49] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:20:54] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [19:44:50] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [18:36:31] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [21:59:45] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [17:08:46] [ERROR] CMySQLConnection::Connect - (error #1049) Base 'datebase' inconnue [17:09:28] [ERROR] CMySQLConnection::Connect - (error #1049) Base 'datebase' inconnue [17:13:10] [ERROR] CMySQLConnection::Connect - (error #1049) Base 'datebase' inconnue [17:17:28] [ERROR] CMySQLConnection::Connect - (error #1049) Base 'datebase' inconnue [17:18:30] [ERROR] CMySQLConnection::Connect - (error #1049) Base 'datebase' inconnue [17:28:45] [ERROR] CMySQLConnection::Connect - (error #1049) Base 'datebase' inconnue [17:50:56] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'datebase' [17:55:03] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'datebase'
Liniile de cod / sursa / script-ul(obligatoriu):
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-RC1, (C)2005-2015 SA-MP Team [17:55:02] filterscripts = "" (string) [17:55:02] [17:55:02] Server Plugins [17:55:02] -------------- [17:55:02] Loading plugin: mysql [17:55:03] >> plugin.mysql: R39-3 successfully loaded. [17:55:03] Loaded. [17:55:03] Loading plugin: streamer [17:55:03] *** Streamer Plugin v2.6.1 by Incognito loaded *** [17:55:03] Loaded. [17:55:03] Loading plugin: sscanf [17:55:03] [17:55:03] =============================== [17:55:03] sscanf plugin loaded. [17:55:03] Version: 2.8.1 [17:55:03] (c) 2012 Alex "Y_Less" Cole [17:55:03] =============================== [17:55:03] Loaded. [17:55:03] Loading plugin: mcmd [17:55:03] [mcmd] Plugin successfully loaded 0.0.1(Compiled on Sep 26 2014, 22:26:46). [17:55:03] Loaded. [17:55:03] Loaded 4 plugins. [17:55:03] [17:55:03] Filterscripts [17:55:03] --------------- [17:55:03] Loaded 0 filterscripts. [17:55:03] [17:55:03] ======================================= [17:55:03] | | [17:55:03] | YSI version 1.04.0000 | [17:55:03] | By Alex "Y_Less" Cole | [17:55:03] | | [17:55:03] ======================================= [17:55:03] [17:55:03] Iter_OnGameModeInit start: 500 [17:55:03] [MYSQL]: conexiunea la baza (datebase) a esuat! [17:55:03] Iter_OnGameModeInit: first [17:55:03] [17:55:03] [17:55:03] RPG: Alpha LosSantos [17:55:03] _____________________ [17:55:03] Number of vehicle models: 44 [17:55:03] --- Server Shutting Down. [17:55:03] plugin.mysql: Unloading plugin... [17:55:03] plugin.mysql: Plugin unloaded. [17:55:03] *** Streamer Plugin v2.6.1 by Incognito unloaded *** [17:55:03] [17:55:03] =============================== [17:55:03] sscanf plugin unloaded. [17:55:03] =============================== [17:55:03] [mcmd] Plugin unloaded.
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Normal!
#define mysql_host "localhost"
#define mysql_user "root"
#define mysql_password ""
#define mysql_database "datebase"
Sunt datele din GM -
Problema intalnita (descriere): Am vrut sa fac un job si atunci cand intru in masina respectiva sa-mi apara un mesaj si un checkpoint. Am reusit sa fac asta si am pus ca atunci cand intrii in acel CP sa-ti dispara si sa-ti apara altul in alta parte. Am facut si asta, mi-a iesit dar nu cred ca am facut bine ce am facut, trebuiesc puse altcumva..si nu ma prea pricep..
Ero(area / rile) / warning-(ul / urile): Nu-mi da erori.
Liniile de cod / sursa / script-ul(obligatoriu):Define's:
#define PDCP1 1981.9431,-1991.3440,13.5469 #define PDCP2 1597.7509,-1626.8083,13.1615
Atunci cand urci in masina sa-ti apara mesajul:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid) == 596) { SetPlayerCheckpoint(playerid, PDCP1, 5); SendClientMessage(playerid, -1, "{FFFFFF}[{0088FF}JOB{FFFFFF}] {FAFAFA}Ti-am pus pe harta un {FF3B5B}checkpoint. {FAFAFA}Du-te la el pentru a lua infractorii si adu-i la sectie."); } return 1; }
Codul cu celalalte CP-uri:
public OnPlayerEnterCheckpoint(playerid) { DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, -1, "Ai luat toti infractorii, acum du-i la sectie!"); SetPlayerCheckpoint(playerid, PDCP2, 5); return 1; }
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da. -
Mareste mainstring cu cate 50 si vezi daca da rezultate.
OMG! Mersi mult! :*
A mers
-
Problema intalnita (descriere): Cand tastez /stats nu-mi arata toate liniile.
Ero(area / rile) / warning-(ul / urile): Dupa cum am spus, cand tastez /stats nu-mi mai arata de la jail in jos...
Liniile de cod / sursa / script-ul:new coordsstring[256], mainstring[500]; format(coordsstring, sizeof(coordsstring), "*** %s (%d) ***", name,targetid); strcat(mainstring, coordsstring); format(coordsstring, sizeof(coordsstring), "n{FFFFFF}Level: {00A6FF}[%d] n{FFFFFF}Sex: {00A6FF}[%s] n{FFFFFF}Cash: {00A6FF}[%s] n{FFFFFF}Bank: {00A6FF}[%s] n{FFFFFF}Phone: {00A6FF}[%d]", level,atext,FormatNumber(cash),FormatNumber(account), pnumber); strcat(mainstring, coordsstring); format(coordsstring, sizeof(coordsstring), "n{FFFFFF}Premium Account: {00A6FF}[%s] n{FFFFFF}Next Level: {00A6FF}[$%s] n{FFFFFF}Respect: {00A6FF}[%d/%d] n{FFFFFF}Hours Played: {00A6FF}[%d] n{FFFFFF}Rob Points: {00A6FF}[%d/20]", drank,FormatNumber(costlevel),exp,expamount,ptime,rob); strcat(mainstring, coordsstring); format(coordsstring, sizeof(coordsstring), "n{FFFFFF}Wanted Deaths: {00A6FF}[%d] n{FFFFFF}CrimesCommited: {00A6FF}[%d] n{FFFFFF}TimesArrested: {00A6FF}[%d] n{FFFFFF}Jail: {00A6FF}[%s]n{FFFFFF}Muted: {00A6FF}[%s]", warrests,crimes,arrests,jailtext,mutedt); strcat(mainstring, coordsstring); format(coordsstring, sizeof(coordsstring), "n{FFFFFF}WantedLevel: {00A6FF}[%d]n{FFFFFF}Married with: {00A6FF}[%s]n{FFFFFF}Lotto: {00A6FF}[%d]n{FFFFFF}Disease: {00A6FF}[%s]n{FFFFFF}Drugs: {00A6FF}[%d]n{FFFFFF}Materials: {00A6FF}[%d]n{FFFFFF}Referral: {00A6FF}[%s]",wanted,married,lotto,dtext,drugs,mats,reffname); strcat(mainstring, coordsstring); format(coordsstring, sizeof(coordsstring), "n{FFFFFF}Job: {00A6FF}[%s] n{FFFFFF}Faction: {00A6FF}[%s] n{FFFFFF}Rank: {00A6FF}[%s] n{FFFFFF}FWarn: {00A6FF}[%d/3] n{FFFFFF}FPunish: {00A6FF}[%d/40] n{FFFFFF}Warns: {00A6FF}[%d/3]",jtext,ttext,rtext,PlayerInfo[targetid][pFACWarns],PlayerInfo[targetid][pFpunish],warn); strcat(mainstring, coordsstring); if (PlayerInfo[playerid][pAdmin] >= 1) { format(coordsstring, sizeof(coordsstring), "n{FFFFFF}House: {00A6FF}[%d] n{FFFFFF}Biz: {00A6FF}[%d] n{FFFFFF}HireKey: {00A6FF}[%d] n{FFFFFF}IP: {00A6FF}[%s] n{FFFFFF}Interior ID: {00A6FF}[%d] n{FFFFFF}Virtual World: {00A6FF}[%d] n{FFFFFF}Spawned Car: {00A6FF}[%s] n{FFFFFF}SQLID: {00A6FF}[%d]",hkey,bkey,HireCar[targetid],playersip,GetPlayerInterior(targetid),GetPlayerVirtualWorld(targetid),carx1,PlayerInfo[targetid][pSQLID]); strcat(mainstring, coordsstring); } ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Status",mainstring,"Inchide",""); } }
Imagini / Video (optional): http://i.imgur.com/GZ7l7Tz.png
Ati incercat sa rezolvati singur?: Da, am incercat, dar fara rezultate... Precizez ca inainte de a pune culorile la texte (alb - albastru) imi arata totul...dar acum nu-mi mai arata de la Jail in colo..
FS Gun Shop cu dialog + mapa
in Filterscript-uri
Posted
@Mafia. Multumesc!