Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 25 of 102
Search took 0.01 seconds.
Search: Posts Made By: TheBladerX
Forum: Scripting Help 02-07-2019, 14:09
Replies: 6
Views: 1,452
Posted By TheBladerX
Re: insert into (or update) mysql fails because of special characters

And one more question, what is the difference between these two?
"'", "\'" and "'","''"
Forum: Scripting Help 02-07-2019, 12:50
Replies: 6
Views: 1,452
Posted By TheBladerX
Re: insert into (or update) mysql fails because of special characters

Should I put it that way as it's shown before?
Under this?

replace_all(szText, sizeof(szText), "'", "\'");


And one more question, what is the difference between these two?
"'", "\'" and...
Forum: Scripting Help 02-07-2019, 12:11
Replies: 6
Views: 1,452
Posted By TheBladerX
Re: insert into (or update) mysql fails because of special characters

Okay, seems like everything works perfectly. Thank you for now.
Forum: Scripting Help 02-07-2019, 10:38
Replies: 6
Views: 1,452
Posted By TheBladerX
insert into (or update) mysql fails because of special characters

Hey, how do I fix that problem? For example player's name is -*KURCZACY*- tesak
and console pops You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version...
Forum: Scripting Help 02-06-2019, 16:29
Replies: 27
Views: 3,018
Posted By TheBladerX
Re: motd prints all playing players in rows

That was the issue all the time ffs :D Thank you all. Solved.
Forum: Scripting Help 02-06-2019, 16:23
Replies: 27
Views: 3,018
Posted By TheBladerX
Re: motd prints all playing players in rows

public player_skills(id)
{
new szMessage[MAX_MOTD_LENGTH], iLen;

iLen = formatex(szMessage, charsmax(szMessage), "<HTML><head></head><body bgcolor=#000000><font color=#FFB000>");...
Forum: Scripting Help 02-06-2019, 16:09
Replies: 27
Views: 3,018
Posted By TheBladerX
Re: motd prints all playing players in rows

Okay, I have a problem with this one too. It seems like "i" goes from -1, which is impossible. Every time I try to add player_class[i] as another string, it shows player's class, which is after this...
Forum: Scripting Help 02-06-2019, 14:28
Replies: 27
Views: 3,018
Posted By TheBladerX
Re: motd prints all playing players in rows

Yes, unfortunately I found some bugs, but I managed to fix them on my own, however I already bothered you all too many times. This one works perfectly, thank you many times.



What exactly does...
Forum: Scripting Help 02-05-2019, 17:09
Replies: 27
Views: 3,018
Posted By TheBladerX
Re: motd prints all playing players in rows

None of these you all sent worked properly. Unfortunately, I do not use amxmodx 1.9, however I still have 1.8.2.

edit:
sorry, this one worked.



Thanks.
Forum: Off-Topic 02-05-2019, 11:48
Replies: 6
Views: 2,162
Posted By TheBladerX
Re: Looking for rank system (something like hlstatsx/psychostats)

It is game-hosting, which offers to one cs 1.6 server one database, not a webserver.
Forum: Suggestions / Requests 02-05-2019, 11:46
Replies: 6
Views: 1,102
Posted By TheBladerX
Re: if connection to mysql failed, skip function

Yeah, I meant, what does establish the connection.



Sorry did not notice your post. That one did not work for me, after many tries. This one...
Forum: Suggestions / Requests 02-05-2019, 10:47
Replies: 6
Views: 1,102
Posted By TheBladerX
Re: if connection to mysql failed, skip function

Okay, so what does? According to this code https://forums.alliedmods.net/showthread.php?t=307920
Forum: Suggestions / Requests 02-05-2019, 09:51
Replies: 6
Views: 1,102
Posted By TheBladerX
if connection to mysql failed, skip function

Hey, how can I make this in plugin init


g_con = SQL_MakeDbTuple(DB_HOST, DB_USER, DB_PASS, DB_DB)
db_con()


if connection fails, skip this and don't connect (because my database stopped...
Forum: Off-Topic 02-05-2019, 09:37
Replies: 6
Views: 2,162
Posted By TheBladerX
Re: Looking for rank system (something like hlstatsx/psychostats)

Yes, but you need to have vps.. Something that does not need anything else except mysql?
Forum: Scripting Help 02-05-2019, 09:35
Replies: 27
Views: 3,018
Posted By TheBladerX
Re: motd prints all playing players in rows

new player_name[33][32];

format(formats, charsmax(player_name), "%s", player_name[id])


Like this?

.. I mean, wouldn't this open a motd? Not like file.txt but these values in it.
Forum: Scripting Help 02-05-2019, 07:45
Replies: 27
Views: 3,018
Posted By TheBladerX
motd prints all playing players in rows

Hello, what am I missing here? I would like to print all players into motd, this is the code:


/* Plugin generated by AMXX-Studio */

#include <amxmodx>

new player_name[33][64];
new...
Forum: Scripting Help 02-04-2019, 19:25
Replies: 13
Views: 2,112
Posted By TheBladerX
Re: upload vault content to mysql

Because I did not know the structure. Thank you for your help. This one helped too https://forums.alliedmods.net/showthread.php?t=307920
Forum: Scripting Help 02-04-2019, 12:37
Replies: 13
Views: 2,112
Posted By TheBladerX
Re: upload vault content to mysql

Edit:

Okay, the issue is this:
This is my nvault

public ZapiszDane(id)
{
new vaultkey[64],vaultdata[256];
format(vaultkey,63,"%s-%i-cod", nazwa_gracza[id], klasa_gracza[id]);...
Forum: Suggestions / Requests 02-04-2019, 08:22
Replies: 2
Views: 819
Posted By TheBladerX
Re: nvault to mysql

Edit:

only upload, not read
public ZapiszDane(id)
{
new vaultkey[64],vaultdata[256];
format(vaultkey,63,"%s-%i-cod", nazwa_gracza[id], klasa_gracza[id]);...
Forum: Suggestions / Requests 02-04-2019, 04:11
Replies: 2
Views: 819
Posted By TheBladerX
nvault to mysql

Hey, can somebody help me with that? I have following nvault:


g_vault = nvault_open("CodMod");


public ZapiszDane(id)
{
new vaultkey[64],vaultdata[256];
format(vaultkey,63,"%s-%i-cod",...
Forum: Off-Topic 02-03-2019, 14:55
Replies: 6
Views: 2,162
Posted By TheBladerX
Looking for rank system (something like hlstatsx/psychostats)

Hello, however I did not find any information about working psychostats, and hlstatsx is really hard to install, I would like to ask, if there is a SQL ranking system, which also has website ranking...
Forum: Scripting Help 02-03-2019, 14:28
Replies: 13
Views: 2,112
Posted By TheBladerX
Forum: Scripting Help 02-03-2019, 12:42
Replies: 13
Views: 2,112
Posted By TheBladerX
Re: upload vault content to mysql

Found [0]
also had to change argparse to parse, it did not want to compile.
Forum: Scripting Help 02-03-2019, 08:40
Replies: 9
Views: 1,830
Posted By TheBladerX
Re: Check player name in mysql and load an integer value from mysql

Well, that one works better, but not properly. Every time I type /debug, it pops Day: 0, even if I change value of days in database.
Also I changed

SELECT * FROM table WHERE username='%s'

to...
Forum: Scripting Help 02-03-2019, 08:16
Replies: 13
Views: 2,112
Posted By TheBladerX
Re: upload vault content to mysql

Okay, thank you. But now I have this problem:
I have one vault entry like this:


josey-10-cod470524#98#100#100#100#100#50#3112#50

, which is


[1307 of 1322] Key=josey-10-cod...
Showing results 1 to 25 of 102

 
Forum Jump

All times are GMT -4. The time now is 06:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode