what are %s %d etc
#1

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

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.
Reply
#3

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


CMDloss
Reply
#4

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;
}
Reply
#5

ok gotta know.
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)