| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 6,660
» Latest member: ISLAM_23
» Forum threads: 2,483
» Forum posts: 12,536
Full Statistics
|
| Online Users |
There are currently 968 online users. » 0 Member(s) | 963 Guest(s) Bing, Discord, Google, Yandex, Applebot
|
| Latest Threads |
[Release] Spawn — IDE for...
Forum: Programming
Last Post: Daniil Korochansky
Yesterday, 05:41 AM
» Replies: 1
» Views: 64
|
discord unban appeal - pa...
Forum: Chat
Last Post: edgy
2026-06-15, 01:50 PM
» Replies: 1
» Views: 88
|
🎮 [91.134.166.72:5555] Jo...
Forum: Advertisements
Last Post: tokofridonashvili_01
2026-06-14, 05:39 PM
» Replies: 0
» Views: 40
|
Project San Andreas Rolep...
Forum: Advertisements
Last Post: Artysh
2026-06-14, 04:08 PM
» Replies: 0
» Views: 43
|
Qawno for macOS — native ...
Forum: Releases
Last Post: DrVandersexxx
2026-06-14, 09:57 AM
» Replies: 1
» Views: 114
|
Proiecte care asteapta Op...
Forum: Romanian/Română
Last Post: ionuzcostin
2026-06-13, 07:55 PM
» Replies: 14
» Views: 28,988
|
Streets Of Vice Roleplay ...
Forum: Advertisements
Last Post: BazMartin
2026-06-13, 07:50 PM
» Replies: 0
» Views: 51
|
[VoiceChat] omp-voice
Forum: Plugins
Last Post: ionuzcostin
2026-06-13, 06:15 PM
» Replies: 0
» Views: 57
|
open.mp Dashboard
Forum: Chat
Last Post: Nexius
2026-06-11, 01:22 PM
» Replies: 9
» Views: 744
|
[SERVER] San Andreas Mult...
Forum: Advertisements
Last Post: tokofridonashvili
2026-06-11, 09:50 AM
» Replies: 0
» Views: 83
|
|
|
| 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)?
|
|
|
|
|