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
skini si novi scanf : http://forum.sa-mp.com/showthread.php?t=120356
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