SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/05/2014, 06:39 PM   #1
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 642
Reputation: 28
Default Help me DINI problem !

This the full Code with DINI -_-"
> http://pastebin.com/9MSQGMiV

i am confused with this :
pawn Code:
public OnPlayerSpawn(playerid)
{
    new file[256];
    new name[24];
    new f1[15],f2[15],f3[15],f4[15],f5[15],f6[15],f7[15],f8[15],f9[15],f10[15],f11[15];
    GetPlayerName(playerid,name,24);
    format(file,sizeof(file),"Player Objects/%s.ini",name);
    if(!dini_Exists(file)) return 1;
    for(new x;x<MAX_OSLOTS;x++)
        {
            format(f1,15,"O_Model_%d",x);
                format(f2,15,"O_Bone_%d",x);
                format(f3,15,"O_OffX_%d",x);
                format(f4,15,"O_OffY_%d",x);
                format(f5,15,"O_OffZ_%d",x);
                format(f6,15,"O_RotX_%d",x);
                format(f7,15,"O_RotY_%d",x);
                format(f8,15,"O_RotZ_%d",x);
                format(f9,15,"O_ScaleX_%d",x);
                format(f10,15,"O_ScaleY_%d",x);
                format(f11,15,"O_ScaleZ_%d",x);
            if(dini_Int(file,f1)!=0)
            {
                SetPlayerAttachedObject(playerid,x,dini_Int(file,f1),dini_Int(file,f2),dini_Float(file,f3),dini_Float(file,f4),dini_Float(file,f5),dini_Float(file,f6),dini_Float(file,f7),dini_Float(file,f8),dini_Float(file,f9),dini_Float(file,f10),dini_Float(file,f11));
                }
        }
        return 1;
}
How i can load(read) all MAX_OSLOTS attachments on Y_ini ?
Sorry for may bad english

Last edited by VenomMancer; 28/06/2014 at 09:54 PM.
VenomMancer is offline   Reply With Quote
Old 09/06/2014, 11:18 AM   #2
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 642
Reputation: 28
Default Re: Help me DINI problem !

Bump
VenomMancer is offline   Reply With Quote
Old 11/06/2014, 03:43 PM   #3
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 642
Reputation: 28
Default Re: Help me DINI problem !

Bump
VenomMancer is offline   Reply With Quote
Old 11/06/2014, 04:14 PM   #4
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,673
Reputation: 3220
Default Re: Help me DINI problem !

Put them in separate tags, then you don't need to format any names.
Y_Less is offline   Reply With Quote
Old 11/06/2014, 06:50 PM   #5
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 642
Reputation: 28
Default Re: Help me DINI problem !

Quote:
Originally Posted by Y_Less View Post
Put them in separate tags, then you don't need to format any names.
Can you make it for me?
cuz i dont know how to do like your say.

#sorry for my bad english.
VenomMancer is offline   Reply With Quote
Old 28/06/2014, 09:55 PM   #6
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 642
Reputation: 28
Default Re: Help me DINI problem !

BUMP
VenomMancer is offline   Reply With Quote
Old 28/06/2014, 09:59 PM   #7
Dignity
High-roller
 
Dignity's Avatar
 
Join Date: May 2013
Location: Belgium
Posts: 1,961
Reputation: 1141
Default Re: Help me DINI problem !

You can probably fix it by using something better than dini. Any proper scripter has moved on from the include, and the only ones who still script with it will just give you bad advice.
Dignity is offline   Reply With Quote
Reply

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
Problem with dini XStormiest Scripting Help 6 13/07/2012 08:07 PM
Dini problem Stheam Help Archive 0 13/03/2011 06:46 PM
problem with Dini !!! [Lsrcr]Rafa Help Archive 11 10/10/2010 03:02 AM
dini.inc problem XLukasX Help Archive 3 01/03/2010 03:41 PM
Dini Problem Rapfabrik Help Archive 0 21/10/2009 09:45 PM


All times are GMT. The time now is 09:00 PM.


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