SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 20/12/2010, 06:34 PM   #1
armyoftwo
Gangsta
 
armyoftwo's Avatar
 
Join Date: Nov 2009
Posts: 636
Reputation: 7
Default Y_INI reading help

I'm trying to make MULTI-LANGUAGE support
pawn Code:
stock SCM(playerid, color, ID)
{
     new LanguageFile[24];
     new PlayerLanguageString[24];
     new Line[128];
     GetPVarString(playerid, "PLAYER_LANGUAGE", PlayerLanguageString, 24);
     format(LanguageFile, 24, "Languages/%s.lang", PlayerLanguageString);
     format(PlayerLanguageString, 24, "LineID:%i", ID);
     INI_Load(LanguageFile);
              INI_String(Line, PlayerLanguageString );
              printf("Line: %s", Line);
}
For example i have
Code:
LineID:1|Laipni lūgts manā serverī
In the file, so this is how i read this??
and then i will sscanf the line

Got this too
Code:
error 017: undefined symbol "INI_String"
I have the newest YSI
__________________
- [INC] Multi language

Last edited by armyoftwo; 20/12/2010 at 07:16 PM.
armyoftwo is offline  
Old 21/12/2010, 11:31 AM   #2
armyoftwo
Gangsta
 
armyoftwo's Avatar
 
Join Date: Nov 2009
Posts: 636
Reputation: 7
Default Re: Y_INI reading help

bump
__________________
- [INC] Multi language
armyoftwo is offline  
Old 21/12/2010, 04:27 PM   #3
armyoftwo
Gangsta
 
armyoftwo's Avatar
 
Join Date: Nov 2009
Posts: 636
Reputation: 7
Default Re: Y_INI reading help

anyone?
__________________
- [INC] Multi language
armyoftwo is offline  
Old 22/12/2010, 11:28 AM   #4
armyoftwo
Gangsta
 
armyoftwo's Avatar
 
Join Date: Nov 2009
Posts: 636
Reputation: 7
Default Re: Y_INI reading help

I can't use Both YSI, how can i use them both?
And it crashes my compiler
__________________
- [INC] Multi language

Last edited by armyoftwo; 22/12/2010 at 12:06 PM.
armyoftwo is offline  
Old 23/12/2010, 08:28 AM   #5
armyoftwo
Gangsta
 
armyoftwo's Avatar
 
Join Date: Nov 2009
Posts: 636
Reputation: 7
Default Re: Y_INI reading help

bump
__________________
- [INC] Multi language
armyoftwo is offline  
Old 23/12/2010, 03:10 PM   #6
armyoftwo
Gangsta
 
armyoftwo's Avatar
 
Join Date: Nov 2009
Posts: 636
Reputation: 7
Default Re: Y_INI reading help

bump
__________________
- [INC] Multi language
armyoftwo is offline  
Old 23/12/2010, 05:07 PM   #7
Lady Cucumber
Little Clucker
 
Join Date: Dec 2010
Posts: 12
Reputation: 0
Default Re: Y_INI reading help

I need help with this too :-O

Please anyone!
Lady Cucumber is offline  
Old 23/12/2010, 05:31 PM   #8
Hal
High-roller
 
Hal's Avatar
 
Join Date: May 2010
Location: Toronto, Canada
Posts: 1,166
Reputation: 43
Default Re: Y_INI reading help

Read the rules, its 48 hours to bump something. And make sure you read the y_ini topic because ****** is very descriptive. if you want multilanguage, you should look into ycmd (for cmds)
__________________

Wanna start a project thats NOT sa-mp with me? I have a bunch of server space, PM me.
Hal is offline  
Old 26/12/2010, 09:37 AM   #9
Lady Cucumber
Little Clucker
 
Join Date: Dec 2010
Posts: 12
Reputation: 0
Default Re: Y_INI reading help

Bumb again, comon someone!
Lady Cucumber is offline  
Old 03/01/2011, 10:50 AM   #10
Mаkaveli
Big Clucker
 
Join Date: Dec 2010
Posts: 54
Reputation: 0
Default Re: Y_INI reading help

i had same problem help!!!!!!!!
Mаkaveli is offline  
 

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
y_ini problems. Toni Help Archive 4 23/11/2010 02:18 AM
Y_Ini. Zh3r0 Help Archive 1 15/10/2010 09:00 PM


All times are GMT. The time now is 07:21 AM.


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