[Pomoc]Prebacivanje

Započeo Chuck:), Mart 04, 2012, 23:24:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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
Poslednja Izmena: Mart 04, 2012, 23:27:29 POSLE PODNE od ♥ Chuck ♥


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

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 ..

Riješio sam nekako, ipak hvala na pomoći

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