Elyks reported a problem #384 with current version of the pawn-highlighter for geshi. The issue was a duplicated entry for 'sizeof'.
II uploaded the
Elyks reported a problem #384 with current version of the pawn-highlighter for geshi. The issue was a duplicated entry for 'sizeof'.
II uploaded the
When making your urls looking better, you may want to convert a title to a url-slug.
An url-slug is in common a string containing only alphanumeric letters and '-'. Following php and lua function converts it to that format.
php:
function toSlug($str) {
return str_replace(" ","-",ereg_replace("[ ]+"," ",ereg_replace("[^ A-Za-z0-9]","",$str)));
}
lua:
function toSlug(str)
return string.gsub(string.gsub(str,"[^ A-Za-z]",""),"[ ]+","-")
end
The
toSlug function also replaces multiple spaces with one ' -' only.
You can find this Lua-How-To at luanet.net, too.
The new pawn compiler finally arrived and is used at sa-mp. But this also means that most scripts/libraries won't compile anymore or give warnings.
Thatswhy I posted an How-To about converting a script step by step from samp 0.1 to 0.2.
Due to the 4 player script server release for samp 0.2 I updated today the widely used libraries for latest pawn compiler. Please update them all, to avoid warnings.
Other 0.2 Ready GameModes/Libraries and Filterscripts can be found at the
0.2#Ready-Page
The good known arena bug is finally fixed. It appeared if somebody, who was in arena before was beaten, the player (who won) got arena-weapons (for example Tec9), which shouldn't be possible in the freeroam part of GTA:T.