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

Username
  

Password
  





Search Forums



(Advanced Search)

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

Latest Threads
Exklusiv 30% Temu Gutsche...
Forum: Chat
Last Post: dumdum147
1 hour ago
» Replies: 0
» Views: 6
Temu Gutscheincode ▶[ALH1...
Forum: Chat
Last Post: dumdum147
1 hour ago
» Replies: 0
» Views: 8
Temu Rabattcode ▶[ALH1993...
Forum: Chat
Last Post: dumdum147
1 hour ago
» Replies: 0
» Views: 7
Code promoTemu nouveaux c...
Forum: Chat
Last Post: dumdum147
1 hour ago
» Replies: 0
» Views: 7
❰France❱ 𝄞 Code promoTemu...
Forum: Chat
Last Post: dumdum147
1 hour ago
» Replies: 0
» Views: 7
Code promoTemu {{"100 € d...
Forum: Chat
Last Post: dumdum147
1 hour ago
» Replies: 0
» Views: 10
Temu Coupon Code ["A$100 ...
Forum: Tech
Last Post: moizz
3 hours ago
» Replies: 0
» Views: 6
Temu Australia Coupon Cod...
Forum: Tech
Last Post: moizz
3 hours ago
» Replies: 0
» Views: 7
[Australia] Temu Promo C...
Forum: Tech
Last Post: moizz
3 hours ago
» Replies: 0
» Views: 7
How To Get Temu Australi...
Forum: Tech
Last Post: moizz
3 hours ago
» Replies: 0
» Views: 7

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