Need mysql base
Hey, can someone give me a Base example for plugin with SQLx, that when player joins server server checks if there is a row in mysql with his name, and if there isn't that name server send a message to mysql like create table with players name which connected to server. i hope you understood what I tried to tell you ;/
|
Re: Need mysql base
There's a tut by Hawk, in Scripting section.
|
Re: Need mysql base
PHP Code:
PHP Code:
|
Re: Need mysql base
PHP Code:
|
Re: Need mysql base
Ah, so how can I create a new row,
PHP Code:
EDIT: now i'm having error in my logs: Quote:
Quote:
|
Re: Need mysql base
That's because it can't connect to database, I suppose. Not sure, though.
Write this right before you're getting amx_sql_* variables for DB connection. PHP Code:
|
Re: Need mysql base
I Edited my connection line
PHP Code:
PHP Code:
|
Re: Need mysql base
You've cutted from the first part of the debug message..
|
Re: Need mysql base
b.t.w. my sql.cfg is already in use by other plugin.
|
Re: Need mysql base
Moved to Scripting Help
|
| All times are GMT -4. The time now is 05:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.