SQL sending killer id to SQL Query
OK, as the first rule I tried myself and learned basics of this SQLx working. It is (almost) working but there is a little problem passing the killer id to sql query. Look here:
In DeathEvent: PHP Code:
This works and I can reach next step without errors: PHP Code:
I get 1 point data entered in MYSQL db but with empty 'username' field and after, it doesn't update. I think it has to do with that Data[] paramter right? Please show me... |
Re: SQL sending killer id to SQL Query
OK I'm sorry for double post but I found my answer by looking at settask data parameter.
It should be done like this: In DeathMsg event: PHP Code:
PHP Code:
Thanks |
Re: SQL sending killer id to SQL Query
Thats so unnecessary. Why dont u use the 'traditional way', load on player connect, save no user disconnect?
|
Re: SQL sending killer id to SQL Query
Quote:
EDIT: There is another problem now. Code:
if(SQL_NumResults(Query) == 1){http://i.minus.com/ibpeuIuxaT1jGf.png In database, second field is flag. It has p flag stored for me. But when I print it, it prints nothing but blank space. Any help? |
Re: SQL sending killer id to SQL Query
to be honest i cant see the querys cause im on my mobile but i think running the query every kill is not eficcient
|
| All times are GMT -4. The time now is 12:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.