Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 144 online users. » 0 Member(s) | 142 Guest(s) Bing, Google
|
Latest Threads |
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,142
|
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 48
|
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 429
|
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 563
|
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,066
|
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 58
|
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: JamesC
2025-06-20, 07:34 PM
» Replies: 0
» Views: 75
|
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2025-06-18, 03:12 PM
» Replies: 0
» Views: 91
|
samp-cef
Forum: Questions and Suggestions
Last Post: jamespssamp
2025-06-18, 11:36 AM
» Replies: 0
» Views: 79
|
Offering Pawn Scripting S...
Forum: Pawn Scripting
Last Post: Mido
2025-06-07, 01:30 PM
» Replies: 0
» Views: 309
|
|
|
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)?
|
|
|
|