Bugged toy system
#1

Toys are not saving after you are reloging or removing them.

My Toy system
http://pastebin.com/uACs4qhE

Please hope someone can help me because i can't just fix them.
Reply
#2

SOMEONE HELP
Reply
#3

Will they save if i will add this?

PHP код:
//Toy Editor
forward LoadToys(playerid,name[],value[]);
public 
LoadToys(playerid,name[],value[])
{
 
        if (!
strcmp(name"ptindex")){ PlayerToyInfo[playerid][ptindex] = strval(value); }
        if (!
strcmp(name"ptmodelid")){ PlayerToyInfo[playerid][ptmodelid] = strval(value); }
        if (!
strcmp(name"ptboneid")){ PlayerToyInfo[playerid][ptboneid] = strval(value); }
        if (!
strcmp(name"ptfOffsetX")){ PlayerToyInfo[playerid][ptfOffsetX] = strval(value); }
        if (!
strcmp(name"ptfOffsetY")){ PlayerToyInfo[playerid][ptfOffsetY] = strval(value); }
        if (!
strcmp(name"ptfOffsetY")){ PlayerToyInfo[playerid][ptfOffsetZ] = strval(value); }
        if (!
strcmp(name"ptfRotX")){ PlayerToyInfo[playerid][ptfRotX] = strval(value); }
        if (!
strcmp(name"ptfRotY")){ PlayerToyInfo[playerid][ptfRotY] = strval(value); }
        if (!
strcmp(name"ptfRotZ")){ PlayerToyInfo[playerid][ptfRotZ] = strval(value); }
        if (!
strcmp(name"ptfScaleX")){ PlayerToyInfo[playerid][ptfScaleX] = strval(value); }
        if (!
strcmp(name"ptfScaleY")){ PlayerToyInfo[playerid][ptfScaleY] = strval(value); }
        if (!
strcmp(name"ptfScaleZ")){ PlayerToyInfo[playerid][ptfScaleZ] = strval(value); }
       
    
INI_Int("ptindex",PlayerToyInfo[playerid][ptindex]);
        
INI_Int("ptmodelid",PlayerToyInfo[playerid][ptmodelid]);
        
INI_Int("ptboneid",PlayerToyInfo[playerid][ptboneid]);
        
INI_Float("ptfOffsetX",PlayerToyInfo[playerid][ptfOffsetX]);
        
INI_Float("ptfOffsetY",PlayerToyInfo[playerid][ptfOffsetY]);
        
INI_Float("ptfOffsetZ",PlayerToyInfo[playerid][ptfOffsetZ]);
        
INI_Float("ptfRotX",PlayerToyInfo[playerid][ptfRotX]);
        
INI_Float("ptfRotY",PlayerToyInfo[playerid][ptfRotY]);
        
INI_Float("ptfRotZ",PlayerToyInfo[playerid][ptfRotZ]);
        
INI_Float("ptfScaleX",PlayerToyInfo[playerid][ptfScaleX]);
        
INI_Float("ptfScaleY",PlayerToyInfo[playerid][ptfScaleY]);
        
INI_Float("ptfScaleZ",PlayerToyInfo[playerid][ptfScaleZ]);
 
    return 
1;

Reply
#4

I really need help with this one, because this is one of the last things i need to fix. I can pay someone if he fixes it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)