<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[SA-MP Forums Archive - Discussion]]></title>
		<link>https://sampforum.blast.hk/</link>
		<description><![CDATA[SA-MP Forums Archive - https://sampforum.blast.hk]]></description>
		<pubDate>Wed, 10 Jun 2026 12:16:05 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Ingame TextDraw Editor for 0.3.7?]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=665706</link>
			<pubDate>Sat, 13 Apr 2019 17:29:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=149755">MichiCZ</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=665706</guid>
			<description><![CDATA[Which one do you recommend to use?]]></description>
			<content:encoded><![CDATA[Which one do you recommend to use?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Arabic support]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=665106</link>
			<pubDate>Fri, 22 Mar 2019 19:07:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=263294">Variable™</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=665106</guid>
			<description><![CDATA[Hi,<br />
<br />
Is it possible to add the Arabic language to the server messages? I mean, in a way that players wouldn't need to download the language or change settings.<br />
<br />
I wanted to include the language in my server and I'm curious whether I can properly implement it without difficulties for the players/newbies?<br />
<br />
Thank you.]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
Is it possible to add the Arabic language to the server messages? I mean, in a way that players wouldn't need to download the language or change settings.<br />
<br />
I wanted to include the language in my server and I'm curious whether I can properly implement it without difficulties for the players/newbies?<br />
<br />
Thank you.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Community made gamemode]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=663871</link>
			<pubDate>Wed, 13 Feb 2019 16:01:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=156220">Itzhak E.</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=663871</guid>
			<description><![CDATA[Hey everyone...<br />
<br />
So I wanted to know if during those all years there has never been this kind of project where the community contributes to the gamemode hosted on Git platforms? If not, is anyone interested or is it too late?]]></description>
			<content:encoded><![CDATA[Hey everyone...<br />
<br />
So I wanted to know if during those all years there has never been this kind of project where the community contributes to the gamemode hosted on Git platforms? If not, is anyone interested or is it too late?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Best way to make log system?]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=663649</link>
			<pubDate>Thu, 07 Feb 2019 21:44:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=297332">Marshas</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=663649</guid>
			<description><![CDATA[Hello everyone. Today I decided to start making my log system and I'm confused a little bit how should I do it. Should I use file management or MySQL? I would like to see advantages and disadvantages of these two ways, if someone can provide them. If file logging is the answer, which file writing/overwriting include/plugin should I use, which one is the best? If I want to have UCP on my website in future, could I load logs from files or I should use MySQL only? How can I store for ex. chat logs there? If I would like to check someone's conversation with other player (to detect IG money selling for IRL money lets say, illegal stuff), how can I log messages which are displayed on players chat, which came from other players? Detect getting messages in certain distance, which I would use in future for displaying messages over players heads (Chat bubbles, I hav'nt done almost anything in my gamemode, just preparing it for easier work in future). Sorry for my english mistakes if there are some. Thanks in advance!<br />
<br />
EDIT:<br />
Recently I tought about multiple mysql connection in my gamemode, one for main server purposes, accounts, houses, businesses, etc. The second for logs, there would be several tables, for chat logs, command logs, movement logs, money logs. Every table would have lets say at least 2 columns, ID of log (A_I) and the log itself ofcourse. Also I tought about foreign keys, and how could I use them if logs would be in the main database, but would it be query, information overflow? Help me decide guys, thanks.]]></description>
			<content:encoded><![CDATA[Hello everyone. Today I decided to start making my log system and I'm confused a little bit how should I do it. Should I use file management or MySQL? I would like to see advantages and disadvantages of these two ways, if someone can provide them. If file logging is the answer, which file writing/overwriting include/plugin should I use, which one is the best? If I want to have UCP on my website in future, could I load logs from files or I should use MySQL only? How can I store for ex. chat logs there? If I would like to check someone's conversation with other player (to detect IG money selling for IRL money lets say, illegal stuff), how can I log messages which are displayed on players chat, which came from other players? Detect getting messages in certain distance, which I would use in future for displaying messages over players heads (Chat bubbles, I hav'nt done almost anything in my gamemode, just preparing it for easier work in future). Sorry for my english mistakes if there are some. Thanks in advance!<br />
<br />
EDIT:<br />
Recently I tought about multiple mysql connection in my gamemode, one for main server purposes, accounts, houses, businesses, etc. The second for logs, there would be several tables, for chat logs, command logs, movement logs, money logs. Every table would have lets say at least 2 columns, ID of log (A_I) and the log itself ofcourse. Also I tought about foreign keys, and how could I use them if logs would be in the main database, but would it be query, information overflow? Help me decide guys, thanks.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Serious Discussion about TIMERS!]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=662422</link>
			<pubDate>Mon, 31 Dec 2018 23:36:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=306502">NexyAG</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=662422</guid>
			<description><![CDATA[Hello everyone, I really want to do something like this:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 130px;
		text-align: left;
		overflow: auto">public OnPlayerConnect(playerid)
{
	SetTimerEx(funcname[], 650, true:flag, "d", playerid);
	//Example:
	SetTimerEx(funcname[], 650, true:AUTO_KILL_ON_PLAYER_DISCONNECT, "d", playerid);
	return 1;
}</pre>
</div>I'm really wondering how can I make timer that kills when player disconnect in this case?<br />
I know that i can create some custom function where i can make enum and than for each started player timer i give a some ++ increment for createdtimers and then just kill all through loop through enum, but that is not so efficient bcuz i cannot know if it is player timer, even if i do sth like flag, i need your opinion <img alt="" border="0" class="inlineimg" src="images/smilies/confused.gif" title="huh"/>]]></description>
			<content:encoded><![CDATA[Hello everyone, I really want to do something like this:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 130px;
		text-align: left;
		overflow: auto">public OnPlayerConnect(playerid)
{
	SetTimerEx(funcname[], 650, true:flag, "d", playerid);
	//Example:
	SetTimerEx(funcname[], 650, true:AUTO_KILL_ON_PLAYER_DISCONNECT, "d", playerid);
	return 1;
}</pre>
</div>I'm really wondering how can I make timer that kills when player disconnect in this case?<br />
I know that i can create some custom function where i can make enum and than for each started player timer i give a some ++ increment for createdtimers and then just kill all through loop through enum, but that is not so efficient bcuz i cannot know if it is player timer, even if i do sth like flag, i need your opinion <img alt="" border="0" class="inlineimg" src="images/smilies/confused.gif" title="huh"/>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[synchronizing information sent by clients]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=662325</link>
			<pubDate>Sat, 29 Dec 2018 06:32:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=169426">Yashas</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=662325</guid>
			<description><![CDATA[At IRL time T, player A shot player B. The player A sends information to the server about the shot (and other information) which is received by the server at time X. Player B keeps sending information every now and then.<br />
<br />
In IRL time T, the player A had some state information (includes player B's state based on which B is rendered on A's screen). Player A's state at IRL time T is received at the server at IRL time X. I somehow need to find out the state of player B as seen by A.<br />
<br />
<b>What are the approaches to solving this problem of synchronization?</b><br />
<br />
The player B continuously informs B's state to the server which is relayed to other nearby players based on which things are rendered on their screen. If I were to store the state information relayed by B in an array. How can I efficiently pick the correct state information of B that corresponds to the event that happened at T on A's screen?]]></description>
			<content:encoded><![CDATA[At IRL time T, player A shot player B. The player A sends information to the server about the shot (and other information) which is received by the server at time X. Player B keeps sending information every now and then.<br />
<br />
In IRL time T, the player A had some state information (includes player B's state based on which B is rendered on A's screen). Player A's state at IRL time T is received at the server at IRL time X. I somehow need to find out the state of player B as seen by A.<br />
<br />
<b>What are the approaches to solving this problem of synchronization?</b><br />
<br />
The player B continuously informs B's state to the server which is relayed to other nearby players based on which things are rendered on their screen. If I were to store the state information relayed by B in an array. How can I efficiently pick the correct state information of B that corresponds to the event that happened at T on A's screen?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Script/systems suggestions for a RP server]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=661108</link>
			<pubDate>Thu, 22 Nov 2018 19:37:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=237466">GabrielBas</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=661108</guid>
			<description><![CDATA[<font size="3"><font face="Palatino Linotype"><b>Hey, Forum SAMP! </b><br />
<br />
I'm creating a role mode server. But i have no imagination to create the script systems for the server.<br />
<br />
<i>Do they have interesting suggestions?</i><br />
<br />
Leave your comment and help me!</font></font>]]></description>
			<content:encoded><![CDATA[<font size="3"><font face="Palatino Linotype"><b>Hey, Forum SAMP! </b><br />
<br />
I'm creating a role mode server. But i have no imagination to create the script systems for the server.<br />
<br />
<i>Do they have interesting suggestions?</i><br />
<br />
Leave your comment and help me!</font></font>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Moving Icon on textdraw]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=660810</link>
			<pubDate>Wed, 14 Nov 2018 06:06:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=155575">Craft.</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=660810</guid>
			<description><![CDATA[Essentially id like to make an area display on the screen showing a map using a textdraw. From this textdraw I would like to live update the player's location on the minimap. I already know how id like to display the map I just don't know if its possible to update the player's position like that on the minimap textdraw. Any tips are appreciated!]]></description>
			<content:encoded><![CDATA[Essentially id like to make an area display on the screen showing a map using a textdraw. From this textdraw I would like to live update the player's location on the minimap. I already know how id like to display the map I just don't know if its possible to update the player's position like that on the minimap textdraw. Any tips are appreciated!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Storing 3D Text in an array bugs code]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=660730</link>
			<pubDate>Sun, 11 Nov 2018 20:57:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=324081">coosmiyn</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=660730</guid>
			<description><![CDATA[Hello. I am new to pawn and all of this. I know some C and this helped me a lot but there is something that I just do not understand.<br />
Why I try to put different Text3Ds in a Text3D array (using Create3DTextLabel or CreateDynamic3DTextLabel for initialization to create the description for different houses) some of my code just bugs out. There are no errors, but when you log in, every pickup just isn't there and also the PlayerToPoint commands do not work anymore, like the ones checking if the player is on a pickup to display a certain text to the screen, which also doesn't happen.]]></description>
			<content:encoded><![CDATA[Hello. I am new to pawn and all of this. I know some C and this helped me a lot but there is something that I just do not understand.<br />
Why I try to put different Text3Ds in a Text3D array (using Create3DTextLabel or CreateDynamic3DTextLabel for initialization to create the description for different houses) some of my code just bugs out. There are no errors, but when you log in, every pickup just isn't there and also the PlayerToPoint commands do not work anymore, like the ones checking if the player is on a pickup to display a certain text to the screen, which also doesn't happen.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Saving players stats on changes or in timer? [MySQL]]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=659965</link>
			<pubDate>Sun, 21 Oct 2018 14:28:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=307928">GospodinX</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=659965</guid>
			<description><![CDATA[Hi guys,<br />
<br />
I want to start an discussion about saving player stats.What you think,is better to save player stats immediately(When there is any change in player stats) or in timer(For example every 10 minutes to save all player stats).<br />
<br />
1) Save accounts in timer<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 34px;
		text-align: left;
		overflow: auto">UPDATE `users` SET `column1` = '%i',`column2` = '%i', `column3` = '%i', `column4` = '%i',`column5` = '%i' WHERE `ID`='%i'</pre>
</div>2) Save column on which we have changes..<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 162px;
		text-align: left;
		overflow: auto">UPDATE `users` SET `column1` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column2` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column3` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column4` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column5` = '%i' WHERE `ID`='%i'</pre>
</div>Now I'm use both option :/ .Half of player stats I save in timer(for example money which changes more often) and half I save on changes(Which changes rarely;for example Level which changes very rarely). <br />
I have Roleplay mode.<br />
<br />
What you use? (Sorry for my bad english)]]></description>
			<content:encoded><![CDATA[Hi guys,<br />
<br />
I want to start an discussion about saving player stats.What you think,is better to save player stats immediately(When there is any change in player stats) or in timer(For example every 10 minutes to save all player stats).<br />
<br />
1) Save accounts in timer<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 34px;
		text-align: left;
		overflow: auto">UPDATE `users` SET `column1` = '%i',`column2` = '%i', `column3` = '%i', `column4` = '%i',`column5` = '%i' WHERE `ID`='%i'</pre>
</div>2) Save column on which we have changes..<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 162px;
		text-align: left;
		overflow: auto">UPDATE `users` SET `column1` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column2` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column3` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column4` = '%i' WHERE `ID`='%i'

UPDATE `users` SET `column5` = '%i' WHERE `ID`='%i'</pre>
</div>Now I'm use both option :/ .Half of player stats I save in timer(for example money which changes more often) and half I save on changes(Which changes rarely;for example Level which changes very rarely). <br />
I have Roleplay mode.<br />
<br />
What you use? (Sorry for my bad english)]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Distributing Source Code publicly]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=658554</link>
			<pubDate>Thu, 06 Sep 2018 21:48:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=287837">Mobtiesgangsa</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=658554</guid>
			<description><![CDATA[if i have a gamemode that i want to release on github also in the community SA-MP!<br />
what license i have to put under it.<br />
<br />
What is the license to share for source code's?]]></description>
			<content:encoded><![CDATA[if i have a gamemode that i want to release on github also in the community SA-MP!<br />
what license i have to put under it.<br />
<br />
What is the license to share for source code's?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Question about variables]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=656111</link>
			<pubDate>Sat, 07 Jul 2018 15:51:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=307826">2Col</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=656111</guid>
			<description><![CDATA[Do I have to check if variable's value is different before setting it?<br />
<br />
Example<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 130px;
		text-align: left;
		overflow: auto">new bool:IsSpawned[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
	IsSpawned[playerid] = true;
	return 1;
}</pre>
</div>or<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 178px;
		text-align: left;
		overflow: auto">new bool:IsSpawned[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
	if(IsSpawned[playerid] != true)
	{
		IsSpawned[playerid] = true;
	}
	return 1;
}</pre>
</div>Which way is better? Or is there no difference?]]></description>
			<content:encoded><![CDATA[Do I have to check if variable's value is different before setting it?<br />
<br />
Example<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 130px;
		text-align: left;
		overflow: auto">new bool:IsSpawned[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
	IsSpawned[playerid] = true;
	return 1;
}</pre>
</div>or<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 178px;
		text-align: left;
		overflow: auto">new bool:IsSpawned[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
	if(IsSpawned[playerid] != true)
	{
		IsSpawned[playerid] = true;
	}
	return 1;
}</pre>
</div>Which way is better? Or is there no difference?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[clang-format config for Pawn]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=656055</link>
			<pubDate>Fri, 06 Jul 2018 11:55:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=50199">[HLF]Southclaw</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=656055</guid>
			<description><![CDATA[I recently realised clang-format (the clang formatting tool for C++, Java, ObjC and a few other languages) quite happily reads <i>most</i> Pawn code.<br />
<br />
You can check out the tool here: <a href="https://clang.llvm.org/docs/ClangFormat.html" target="_blank">https://clang.llvm.org/docs/ClangFormat.html</a> and play with configs here: <a href="https://clangformat.com/" target="_blank">https://clangformat.com/</a> or here: <a href="https://zed0.co.uk/clang-format-configurator/" target="_blank">https://zed0.co.uk/clang-format-configurator/</a><br />
<br />
So, being a lover of conventions and strict formatting, I attempted to write a clang format config for Pawn based on the conventions that the community have adopted over the years.<br />
<br />
It looks like this:<br />
<br />
<img alt="" border="0" src="https://i.imgur.com/NKCO8lz.gif"/><br />
<br />
And the configuration is:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 242px;
		text-align: left;
		overflow: auto">---
BasedOnStyle: WebKit
IndentWidth: 4
---
Language: Cpp
AlignAfterOpenBracket: DontAlign
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeColon
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
SortIncludes: true
SpaceBeforeAssignmentOperators: false</pre>
</div>The only issue, as you can see in the gif above, foreach is broken and I can't figure out a solution for it (outside of writing my own formatter - which was doing, and may continue).<br />
<br />
If anyone wants to contribute, go ahead! It would be nice to have a universal format that is also enforced by a tool that can eventually be implemented into the <a href="https://sampforum.blast.hk/showthread.php?tid=647134" target="_blank">Pawn Tools for VS Code</a> extension so source code is formatted upon saving the file to save time while writing.]]></description>
			<content:encoded><![CDATA[I recently realised clang-format (the clang formatting tool for C++, Java, ObjC and a few other languages) quite happily reads <i>most</i> Pawn code.<br />
<br />
You can check out the tool here: <a href="https://clang.llvm.org/docs/ClangFormat.html" target="_blank">https://clang.llvm.org/docs/ClangFormat.html</a> and play with configs here: <a href="https://clangformat.com/" target="_blank">https://clangformat.com/</a> or here: <a href="https://zed0.co.uk/clang-format-configurator/" target="_blank">https://zed0.co.uk/clang-format-configurator/</a><br />
<br />
So, being a lover of conventions and strict formatting, I attempted to write a clang format config for Pawn based on the conventions that the community have adopted over the years.<br />
<br />
It looks like this:<br />
<br />
<img alt="" border="0" src="https://i.imgur.com/NKCO8lz.gif"/><br />
<br />
And the configuration is:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 242px;
		text-align: left;
		overflow: auto">---
BasedOnStyle: WebKit
IndentWidth: 4
---
Language: Cpp
AlignAfterOpenBracket: DontAlign
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeColon
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
SortIncludes: true
SpaceBeforeAssignmentOperators: false</pre>
</div>The only issue, as you can see in the gif above, foreach is broken and I can't figure out a solution for it (outside of writing my own formatter - which was doing, and may continue).<br />
<br />
If anyone wants to contribute, go ahead! It would be nice to have a universal format that is also enforced by a tool that can eventually be implemented into the <a href="https://sampforum.blast.hk/showthread.php?tid=647134" target="_blank">Pawn Tools for VS Code</a> extension so source code is formatted upon saving the file to save time while writing.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Prop Hunt Gamemode]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=655950</link>
			<pubDate>Tue, 03 Jul 2018 12:31:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=315452">Verc</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=655950</guid>
			<description><![CDATA[So basically I'm currently making a prop hunt gamemode for sa-mp,the project is only for fun and I want opinion from you guys which is better method for this.<br />
<br />
<b>Method 1:</b><br />
Using an invisible skin and attach the object to player,this will be much easier however I countered a bug which makes the player jump so high,I can't find the solution now.<br />
<br />
<b>Method 2:</b><br />
Create an object and attach the camera to it(I didn't tried this yet)which makes the movement easier but it would be complicated to code and as far as I know,it's not possible to make the player freeze but the keypad is working(tell me if I'm wrong).<br />
<br />
I would be glad if people can help me with this project,I will put this to github if people are really interested.]]></description>
			<content:encoded><![CDATA[So basically I'm currently making a prop hunt gamemode for sa-mp,the project is only for fun and I want opinion from you guys which is better method for this.<br />
<br />
<b>Method 1:</b><br />
Using an invisible skin and attach the object to player,this will be much easier however I countered a bug which makes the player jump so high,I can't find the solution now.<br />
<br />
<b>Method 2:</b><br />
Create an object and attach the camera to it(I didn't tried this yet)which makes the movement easier but it would be complicated to code and as far as I know,it's not possible to make the player freeze but the keypad is working(tell me if I'm wrong).<br />
<br />
I would be glad if people can help me with this project,I will put this to github if people are really interested.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[OnPlayerGiveDamage or OnPlayerTakeDamage?]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=655264</link>
			<pubDate>Sun, 17 Jun 2018 09:04:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=271490">Exhibit</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=655264</guid>
			<description><![CDATA[Hi, first of all let me clear that I do know what these callbacks are for and when they are called. I have a simple really simple question. <br />
<br />
Which one of these is better for custom sync/damages?]]></description>
			<content:encoded><![CDATA[Hi, first of all let me clear that I do know what these callbacks are for and when they are called. I have a simple really simple question. <br />
<br />
Which one of these is better for custom sync/damages?]]></content:encoded>
		</item>
	</channel>
</rss>