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
[Pomoc]Prebacivanje
458
pregleda
5
postova
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
4. Mar. 2012.
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 😛
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 😛
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
4. Mar. 2012.
imas sve u temi kako koritis :
I skini zadnji update od scanf-a ..
Quote
Use
This behaves exactly as the old sscanf did, just MUCH faster and much more flexibly. To use it add:
pawn Code:
#include
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 ");
}
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<=>ss", 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 ");
}
This behaves exactly as the old sscanf did, just MUCH faster and much more flexibly. To use it add:
pawn Code:
#include
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
}
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<=>ss", 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
}
I skini zadnji update od scanf-a ..
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava