Author Topic: Script help  (Read 2098 times)

0 Members and 2 Guests are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Script help
« on: June 13, 2011, 05:09:54 am »
What is the used of [pawn]%s[/pawn] and [pawn]%d[/pawn]? for example: [pawn]format(szMsg,sizeof(szMsg),"Nick:[ %s ] Level:[ %d ] Status:[ %s ]",gPlayers[playerid],level,StatusTag(level));[/pawn]
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Script help
« Reply #1 on: June 13, 2011, 01:36:39 pm »
Quote from: http://famp.ru/wiki/Format
Placeholder    Meaning
 %b    Inserts a number at this position in binary radix
 %c    Inserts a single character.
 %d    Inserts an integer (whole) number
 %f    Inserts a floating point number.
 %i    Inserts an integer.
 %s    Inserts a string.
 %x    Inserts a number in hexadecimal notation.
 %    Inserts the literal '%'
Do not PM me for support.