Doesn't load object[MySQL]
#10

Will it be better If i change my enum to TagInfo[MAX_TAGS_PER_PLAYER][TagInformation], removing all [playerid] dimensions ?
Doing something like that:
at top of the script

PHP код:
new TagInfo[MAX_TAGS_PER_PLAYER][TagInformation], tagIndex SprayTags_GetFreeSlot(); 
Function
PHP код:
function SprayTag_GetFreeID()
                {
                    for(new 
0iMAX_TAGS_PER_PLAYERi++) if(!TagInfo[i][TagExists]) return i;
                    return - 
1;
                } 
My command
PHP код:
CMD:create(playeridparams[])  
{  
    if(
tagIndex == -1) { 
        return 
SendClientMessage(playerid, -1"You have reached the maximum amount of tags per player."); 
    } 
    
TagInfo[playerid][tagIndex][TagObject] = CreateDynamicObject(19482XYZ0.00.00.0, -1, -1, -1300.0300.0); 
    return 
1;  

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: 3 Guest(s)