SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Thread Tools Display Modes
Old 13/03/2012, 10:44 PM   #1
Little Clucker
Join Date: Feb 2012
Posts: 21
Reputation: 1
Default Problems With Spawning

Okay I have been Having Many problems My server first Had A Error with Ids 0 all the ids would link back to id 0 e.g /giveweapon 3 and it will give the weapon to Id 0 Then I asked A scripter If he can help He said to and this to the .pwn
SA-MP MySQL plugin R5
Copyright (c) 2008-2010, G-sTyLeZzZ

#if defined mysql_included
#define mysql_included

//Common error codes (|server).html)

#define ER_UNKNOWN_TABLE 1109
#define ER_SYNTAX_ERROR 1149
#define CR_SERVER_LOST 2013

//Native functions

#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")
#define mysql_next_row() mysql_retrieve_row()
#define mysql_get_field(%1,%2) mysql_fetch_field_row(%2,%1)

native mysql_affected_rows(connectionHandle = 1);
native mysql_close(connectionHandle = 1);
native mysql_connect(const host[],const user[],const database[],const password[]);
native mysql_debug(enable = 1);
native mysql_errno(connectionHandle = 1);
native mysql_fetch_int(connectionHandle = 1);
native mysql_fetch_field(number,dest[],connectionHandle = 1);
native mysql_fetch_field_row(string[],const fieldname[],connectionHandle = 1);
native mysql_fetch_float(&Float:result,connectionHandle = 1);
native mysql_fetch_row_format(string[],const delimiter[] = "|",connectionHandle = 1);
native mysql_field_count(connectionHandle = 1);
native mysql_free_result(connectionHandle = 1);
native mysql_get_charset(destination[],connectionHandle = 1);
native mysql_insert_id(connectionHandle = 1);
native mysql_num_rows(connectionHandle = 1);
native mysql_num_fields(connectionHandle = 1);
native mysql_ping(connectionHandle = 1);
native mysql_query(query[],resultid = (-1),extraid = (-1),connectionHandle = 1);
native mysql_query_callback(index,query[],callback[],extraid = (-1),connectionHandle = 1);
native mysql_real_escape_string(const source[],destination[],connectionHandle = 1);
native mysql_reconnect(connectionHandle = 1);
native mysql_reload(connectionHandle = 1);
native mysql_retrieve_row(connectionHandle = 1);
native mysql_set_charset(charset[],connectionHandle = 1);
native mysql_stat(const destination[],connectionHandle = 1);
native mysql_store_result(connectionHandle = 1);
native mysql_warning_count(connectionHandle = 1);

//forward declarations

forward OnQueryFinish(query[], resultid, extraid, connectionHandle);
forward OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle);
so I Did the I ran the server same problem he then said it is something to with sscanf2 he said to change it to this
native sscanf(const data[], const format[], {Float,_}:...);
native unformat(const data[], const format[], {Float,_}:...) = sscanf;
native SSCANF_Init(players, invalid, len);
native SSCANF_Join(playerid, const name[], npc);
native SSCANF_Leave(playerid);
So I did that now When I spawn it Says stay Stay in world Note:I have the Latest sscanf, latest mysql, latest streamer +1rep
hazthekid is offline   Reply With Quote
Old 13/03/2012, 11:30 PM   #2
Huge Clucker
Cole_William's Avatar
Join Date: Jul 2011
Location: Colorado
Posts: 356
Reputation: 22
Default Re: Problems With Spawning

WE HAVE SAID 100 TIMES UPDATE YOUR SSCANF And sometimes dont use the 100% updated version
Cole_William is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid problems, spawning Anthonyx3' Help Archive 12 11/01/2011 08:17 PM
Spawning problems [SU]Fnugski Help Archive 3 29/12/2010 03:14 AM
Problems with spawning Anthonyx3' Help Archive 7 27/12/2010 10:32 AM
Help with spawning a car and destroing it after spawning another car Elmin Help Archive 2 25/12/2009 05:05 PM
[FS]CarOwnership problems, GM Problems coole210 Help Archive 8 17/06/2009 10:27 PM

All times are GMT. The time now is 08:05 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.