Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,660
» Latest member: ISLAM_23
» Forum threads: 2,483
» Forum posts: 12,536

Full Statistics

Online Users
There are currently 937 online users.
» 0 Member(s) | 934 Guest(s)
Google, Bing, Yandex

Latest Threads
[Release] Spawn — IDE for...
Forum: Programming
Last Post: Daniil Korochansky
Yesterday, 05:41 AM
» Replies: 1
» Views: 65
discord unban appeal - pa...
Forum: Chat
Last Post: edgy
2026-06-15, 01:50 PM
» Replies: 1
» Views: 91
🎮 [91.134.166.72:5555] Jo...
Forum: Advertisements
Last Post: tokofridonashvili_01
2026-06-14, 05:39 PM
» Replies: 0
» Views: 41
Project San Andreas Rolep...
Forum: Advertisements
Last Post: Artysh
2026-06-14, 04:08 PM
» Replies: 0
» Views: 44
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: 29,002
Streets Of Vice Roleplay ...
Forum: Advertisements
Last Post: BazMartin
2026-06-13, 07:50 PM
» Replies: 0
» Views: 52
[VoiceChat] omp-voice
Forum: Plugins
Last Post: ionuzcostin
2026-06-13, 06:15 PM
» Replies: 0
» Views: 58
open.mp Dashboard
Forum: Chat
Last Post: Nexius
2026-06-11, 01:22 PM
» Replies: 9
» Views: 752
[SERVER] San Andreas Mult...
Forum: Advertisements
Last Post: tokofridonashvili
2026-06-11, 09:50 AM
» Replies: 0
» Views: 84

 
  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?


  Advanced Textdraws
Posted by: PanGemius - 2021-01-04, 01:38 PM - Forum: Pawn Scripting - Replies (4)

Hi guys,



I would like to do some better stuff with textdraws other than just showing a text. But in my TD editor I did not manage to do things like this:

https://www.youtube.com/watch?v=C9Pjjo5KQos



How can they be done and what would you recommend? Ty.


  Sistema de Plantação e Colheita
Posted by: LeleziN - 2021-01-04, 11:48 AM - Forum: Portuguese/Português - No Replies

Bom pessoal venho em meio desse t?pico pedir uma ajuda a voc?s, bom se algu?m tiver esse sistema ou algo parecido fico muito agradecido se poderem compartilhar comigo.



T? Ir o v?deo do sistema, j? procurei e n?o encontrei nada parecido.

https://youtu.be/tH7ds3oaxIY


  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?


  Swahili / Kiswahili
Posted by: Sweet - 2021-01-03, 02:38 PM - Forum: Other - No Replies

Hapa unaweza ongea kiswahili kama unakielewa..


Wink What would you choose to be a CEO in for example Google or have 1 billion dollars.
Posted by: Sweet - 2021-01-03, 01:09 PM - Forum: Life - Replies (7)

Lets hear those minds


  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]

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)?