SA-MP Forums Archive
what are %s %d etc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: what are %s %d etc (/showthread.php?tid=617061)



what are %s %d etc - XHunterZ - 15.09.2016

What are they? I want to make a packetloss command can anyone show me any example using ZCMD?


Re: what are %s %d etc - Luis- - 15.09.2016

https://sampwiki.blast.hk/wiki/Format
https://sampforum.blast.hk/showthread.php?tid=265433

Should help you out.

Basically, %s is a string, %d is a decimal.


Re: what are %s %d etc - XHunterZ - 15.09.2016

can u show me an example by creating a packeltloss command?


CMDloss


Re: what are %s %d etc - Luis- - 15.09.2016

https://sampwiki.blast.hk/wiki/NetStats_PacketLossPercent

There's a command on there;

pawn Код:
CMD:packetloss(playerid) {
    new szString[144];
    format(szString, sizeof(szString), "Packets lost: %.2f percent.", NetStats_PacketLossPercent(playerid));
    SendClientMessage(playerid, -1, szString);
    return 1;
}



Re: what are %s %d etc - XHunterZ - 15.09.2016

ok gotta know.


Re: what are %s %d etc - JakeXxX - 15.09.2016

Quote:
Originally Posted by XHunterZ
Посмотреть сообщение
can u show me an example by creating a packeltloss command?


CMDloss
Search in the wiki next time, you can find most of the things there.