So, hab es nun einigermaßen verstanden, ich dachte.. das sofort alles was du bekommst auch in die DB mit abgespeichert wird.. also man nicht das noch reinspeichern müsste.
//edit:
Dann musst du die Variable pLevel um 500 direkt erhöhen, dann klappt das mit dem Speichern auch
Hab ein kleines Problem.. Wenn ich bei OnPlayerSpawn
PlayerInfo[playerid][pLevel] = 1;
schreibe, dann draufjoine wird nix in der Datenbank gesetzt, warum?
[23:10:23] [DEBUG] mysql_format(1, 0x0495FED4, 256, "SELECT * FROM users WHERE name = '%e' AND password = MD5('%e')")
[23:10:23] [DEBUG] CHandle::EscapeString(this=0x654f10, src='Ronny_Wolf')
[23:10:23] [DEBUG] CConnection::EscapeString(src='Ronny_Wolf', this=0x667250, connection=0x640af0)
[23:10:23] [DEBUG] CHandle::EscapeString - return value: true, escaped string: 'Ronny_Wolf'
[23:10:23] [DEBUG] CHandle::EscapeString(this=0x654f10, src='123456')
[23:10:23] [DEBUG] CConnection::EscapeString(src='123456', this=0x667250, connection=0x640af0)
[23:10:23] [DEBUG] CHandle::EscapeString - return value: true, escaped string: '123456'
[23:10:23] [DEBUG] mysql_format: return value: '74'
[23:10:23] [DEBUG] mysql_pquery(1, "SELECT * FROM users WHERE name = 'Ronny_Wolf' AND password = MD5('123456')", "OnUserLogin", "d")
[23:10:23] [DEBUG] CCallback::Create(amx=0x28e2eb8, name='OnUserLogin', format='d', params=0x495febc, param_offset=5)
[23:10:23] [DEBUG] CCallback::Create - callback index for 'OnUserLogin': 37
[23:10:23] [DEBUG] processing specifier 'd' with parameter index 0
[23:10:23] [DEBUG] retrieved and pushed value '0'
[23:10:23] [INFO] Callback 'OnUserLogin' set up for delayed execution.
[23:10:23] [DEBUG] created delayed callback with 1 parameter
[23:10:23] [DEBUG] CHandle::Execute(this=0x654f10, type=2, query=0x6a8f18)
[23:10:23] [DEBUG] CConnectionPool::Queue(query=0x6a8f18, this=0x667410)
[23:10:23] [DEBUG] CConnection::Execute(query=0x6a8f18, this=0x6140020, connection=0x68f360)
[23:10:23] [DEBUG] CQuery::Execute(this=0x6a8f18, connection=0x68f360)
[23:10:23] [DEBUG] CHandle::Execute - return value: true
[23:10:23] [DEBUG] mysql_pquery: return value: '1'
[23:10:23] [INFO] query "SELECT * FROM users WHERE name = 'Ronny_Wolf' AND password = MD5('123456')" successfully executed within 0.635 milliseconds
[23:10:23] [DEBUG] CResultSet::Create(connection=0x68f360, query_str='SELECT * FROM users WHERE name = 'Ronny_Wolf' AND password = MD5('123456')')
[23:10:23] [DEBUG] created new resultset '0x6711b8'
[23:10:23] [DEBUG] fetched MySQL result '0x657028'
[23:10:23] [DEBUG] allocated 100 bytes for PAWN result
[23:10:23] [DEBUG] CCallback::Execute(amx=0x28e2eb8, index=37, num_params=1)
[23:10:23] [INFO] Executing callback 'OnUserLogin' with 1 parameter...
[23:10:23] [DEBUG] processing internal specifier 'c'
[23:10:23] [DEBUG] pushed value '0' onto AMX stack
[23:10:23] [DEBUG] executing AMX callback with index '37'
[23:10:23] [DEBUG] cache_get_row_count(0x049602E0)
[23:10:23] [DEBUG] cache_get_row_count: return value: '1'
[23:10:23] [DEBUG] cache_get_value_name_int(0, "id", 0x049371D0)
[23:10:23] [DEBUG] cache_get_value_name_int: assigned value: '3'
[23:10:23] [DEBUG] cache_get_value_name_int: return value: '1'
[23:10:23] [DEBUG] cache_get_value_name_int(0, "level", 0x04937238)
[23:10:23] [DEBUG] cache_get_value_name_int: assigned value: '0'
[23:10:23] [DEBUG] cache_get_value_name_int: return value: '1'
[23:10:23] [DEBUG] cache_get_value_name_int(0, "money", 0x0493723C)
[23:10:23] [DEBUG] cache_get_value_name_int: assigned value: '0'
[23:10:23] [DEBUG] cache_get_value_name_int: return value: '1'
[23:10:23] [DEBUG] cache_get_value_name_int(0, "kills", 0x04937240)
[23:10:23] [DEBUG] cache_get_value_name_int: assigned value: '0'
[23:10:23] [DEBUG] cache_get_value_name_int: return value: '1'
[23:10:23] [DEBUG] cache_get_value_name_int(0, "deaths", 0x04937244)
[23:10:23] [DEBUG] cache_get_value_name_int: assigned value: '0'
[23:10:23] [DEBUG] cache_get_value_name_int: return value: '1'
[23:10:23] [DEBUG] AMX callback executed with error '0'
[23:10:23] [INFO] Callback successfully executed.
Alles anzeigen