| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 8,051
» Latest member: joneiker
» Forum threads: 2,493
» Forum posts: 12,510
Full Statistics
|
| Online Users |
There are currently 210 online users. » 2 Member(s) | 206 Guest(s) Bing, Applebot, selfmadevansh, NullSablex
|
|
|
| Loading .ini files |
|
Posted by: [bC].Thef - 2021-01-04, 02:15 PM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hello there!
I am working on House System and i am using ini to store data.
The problem is, that the data does not load.
Code: #define PATH3 "/Houses/%s.ini"
#define MAX_HOUSES 308
public OnGameModeInit()
{
? ? ?for(new i = 0; i < MAX_HOUSES; i)
? ? ?{
? ? ? ? ? ? INI_ParseFile(House(i), "LoadHouses_%s", .bExtra = true, .extra = i);
? ? ?}
? ? return 1;
}
forward LoadHouses_data(houseid, name[], value[]);
public LoadHouses_data(houseid, name[], value[])
{
? ? if(fexist(House(houseid)))
? ? {? ??
? ? ? ?INI_String("HouseOwner",HI[houseid][hHouseOwner],24);
? ? ? ?INI_Int("HouseOwned",HI[houseid][hHouseOwned]);
? ? ? ?printf("House: %i / HouseOwned = %i",houseid,HI[houseid][hHouseOwned]);
}
stock House(Houseid)
{
new string[128],HouseName[24];
format(HouseName,sizeof(HouseName), "House_ID_%i",Houseid);
format(string,sizeof(string),PATH3,HouseName);
return string;
}
Each of 307 houses is printed, so it looks like file name is loading correctly, but not?HI[houseid][hHouseOwned].
Because in the file,?HI[houseid][hHouseOwned] = 666, but it prints 0 wich is not correct.
Code: House: 0 / HouseOwned = 0
House: 1 / HouseOwned = 0
What am i doing bad?
|
|
|
|
| Modlar |
|
Posted by: JackKrauser - 2021-01-04, 07:57 AM - Forum: Turkish
- No Replies
|
 |
Mod paylasim yeri a?ilabilirmi acaba @JokerTR
|
|
|
|
| Camera |
|
Posted by: Radical - 2021-01-03, 04:23 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Is there a way to check when a player is taking a picture with a camera weapon?
I want to make snap shots.
|
|
|
|
| Siren Fuction |
|
Posted by: Carlox - 2021-01-03, 02:46 PM - Forum: Pawn Scripting
- No Replies
|
 |
Hi guys, I'm kind of new to pawno ...
Could someone give me the function / code to spawn a vehicle with a siren?
|
|
|
|
| crane object id |
|
Posted by: DanMas - 2021-01-03, 10:49 AM - Forum: Support
- No Replies
|
 |
hello! i wanna ask you for help about crane object ids, what you can see on picture. It is 1380 1379 1382 objects 'silhouette'? I removed these objects and can't remove this... and nothing can found about this ids. maybe you know or you could give me advice where i can found this ids. Map Editor didn't see these objects at all. thanks anyway
![[Image: P1OqWTC.png]](https://i.imgur.com/P1OqWTC.png)
its?1398?1399 1400 . thanks xD
Resolved
|
|
|
|
| Array Size |
|
Posted by: Torque - 2021-01-03, 06:57 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
What's the max array size? Or line size for a variable? I'm getting?error 075: input line too long (after substitutions)?
|
|
|
|
|