|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Posts: 91
Reputation: 0
|
Hi, Every One.
I just want a example for how to use the (Yini Inc) for reading .ini I have a ini file in the nex path Code:
scriptfiles/example/test.ini Code:
testkey = 1 Thanks. |
|
|
|
|
#2 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Posts: 91
Reputation: 0
|
Someone plz.
Thanks. |
|
|
|
|
#3 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2007
Location: Norway
Posts: 3,561
Reputation: 129
|
Quote:
|
|
|
|
|
|
#4 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,677
Reputation: 1940
|
pawn Code:
pawn Code:
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Posts: 91
Reputation: 0
|
damn here is my code
pawn Code:
pawn Code:
Code:
.pwn(725) : error 029: invalid expression, assumed zero .pwn(725) : error 017: undefined symbol "@INI_aka_" .pwn(725) : error 017: undefined symbol "@INI_aka_" .pwn(725) : fatal error 107: too many error messages on one line |
|
|
|
|
#6 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2009
Location: Argentina
Posts: 2,087
Reputation: 29
|
Quote:
pawn Code:
|
|
|
|
|
|
#7 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Posts: 91
Reputation: 0
|
pawn Code:
Code:
.pwn(725) : error 029: invalid expression, assumed zero .pwn(725) : error 017: undefined symbol "@INI_aka_" .pwn(725) : error 017: undefined symbol "@INI_aka_" .pwn(725) : fatal error 107: too many error messages on one line |
|
|
|
|
#8 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,677
Reputation: 1940
|
aka is a function, you seem to be putting it inline with other code.
|
|
|
|
|
#9 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Posts: 91
Reputation: 0
|
i see then i need to use global variables for my sistems =S?
|
|
|
|
|
#10 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,677
Reputation: 1940
|
Yes, or you can also use function calls such as SetPlayerHealth in that callback (obviously if your ini contains data on health for example).
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading directory | regdude | Help Archive | 3 | 29/08/2010 08:31 PM |
| Reading a timer | (.Aztec); | Help Archive | 0 | 08/08/2010 11:54 PM |
| Reading from a file | LeePL | Help Archive | 1 | 12/08/2009 07:01 PM |
| Error reading from ini | Vince | Help Archive | 2 | 05/04/2009 08:29 AM |
| Reading SQL ID | Coicatak | Help Archive | 0 | 04/02/2009 10:15 AM |