Doesn't load object[MySQL]
#6

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
Add an extra dimension which goes up to MAX_TAGS_PER_PLAYER which you can define to any value you like.
PHP код:
#define MAX_TAGS_PER_PLAYER 3
enum E_TAG_DATA {
    
// enumerators...
};
new 
TagInfo[MAX_PLAYERS][MAX_TAGS_PER_PLAYER][E_TAG_DATA]; 
Ok and let's say the player has created the object
How should i use the variable with one more dimension?
For example
PHP код:
CMD:create(playeridparams[])
{
          
TagInfo[playerid][TagObject] = CreateDynamicObject(19482XYZ0.00.00.0, -1, -1, -1300.0300.0);
           return 
1;

How this should be changed with the extra dimension?
EDIT: Forgot to mention that i am using in my script
PHP код:
mysql_format(mysqlquerysizeof(query), "SELECT * FROM `spraytags` WHERE `TagOwnerID` = '%d'"pinfo[playerid][ID]);
                    
mysql_tquery(mysqlquery"LoadSprayTags""i"playerid); 
Reply


Messages In This Thread
Doesn't load object[MySQL] - by vassilis - 27.10.2016, 11:54
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 11:58
Re: Doesn't load object[MySQL] - by Konstantinos - 27.10.2016, 12:00
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:01
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 12:04
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:07
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 12:28
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:41
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 12:56
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:59

Forum Jump:


Users browsing this thread: 5 Guest(s)