Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Chuck:) poslato Mart 04, 2012, 23:24:44 POSLE PODNE

Naslov: [Pomoc]Prebacivanje
Poruka od: Chuck:) poslato Mart 04, 2012, 23:24:44 POSLE PODNE
Nick na forumu: Chuck
Opis problema: Znači nisam jako dugo skriptao. I sad sam prebacio mod iz 0.3c u 0.3d i idovi mi ne rade, probam /prison i neće ID :s
Može mi netko dat link sscanfa tog što treba sad? TNx
Naslov: Odg: [Pomoc]Prebacivanje
Poruka od: [TG:RP]$--L84S--$ poslato Mart 04, 2012, 23:28:00 POSLE PODNE
skini si novi scanf : http://forum.sa-mp.com/showthread.php?t=120356
Naslov: Odg: [Pomoc]Prebacivanje
Poruka od: Chuck:) poslato Mart 04, 2012, 23:33:21 POSLE PODNE
A sve sam to stavio i neće :S
Ne kontam.

Znači stavio sam u Pawno -> Include onaj fajl
pa u Plugins sscanf.dll i sscanf.so
i u Plugins folder sscanf

Jesam nešto zeznuo, ne sjećam se više ničega, ne radim skoro godinu dana :P
Naslov: Odg: [Pomoc]Prebacivanje
Poruka od: [TG:RP]$--L84S--$ poslato Mart 04, 2012, 23:42:35 POSLE PODNE
imas sve u temi kako koritis :
CitatUse

This behaves exactly as the old sscanf did, just MUCH faster and much more flexibly. To use it add:

pawn Code:
#include <sscanf2>

To your modes and remove the old sscanf. On windows add:

Code:
plugins sscanf
To server.cfg. On Linux add:

Code:
plugins sscanf.so
The basic code looks like:

pawn Code:
if (sscanf(params, "ui", giveplayerid, amount))
{
    return SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash <playerid/name> <amount>");
}

However it should be noted that sscanf can be used for any text processing you like. For example an ini processor could look like (don't worry about what the bits mean at this stage):

pawn Code:
if (sscanf(szFileLine, "p<=>s[8]s[32]", szIniName, szIniValue))
{
    printf("Invalid INI format line");
}

There is also an alternate function name to avoid confusion with the C standard sscanf:

pawn Code:
if (unformat(params, "ui", giveplayerid, amount))
{
    return SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash <playerid/name> <amount>");
}
I skini zadnji update od scanf-a ..
Naslov: Odg: [Pomoc]Prebacivanje
Poruka od: Chuck:) poslato Mart 04, 2012, 23:47:12 POSLE PODNE
Riješio sam nekako, ipak hvala na pomoći

locklocklocklocklock nadam se da skoro neću tražit vašu pomoć hnjo hnjo :P