Raised This Month: $51 Target: $400
 12% 

Me podrian explicar un poco mas sobre %s %d %L


  
 
 
Thread Tools Display Modes
Author Message
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: España
Old 05-29-2011 , 11:38   Me podrian explicar un poco mas sobre %s %d %L
#1

el titulo lo deja bien claro

Pd: no estoy seguro que sea asi estoy desde el movil..
AlgoChikitito is offline
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 05-29-2011 , 12:05   Re: Me podrian explicar un poco mas sobre %s %d %L
#2

%s = string
%d = decimal
%i = entero
%f = float
%L = para el multilingual
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Manu127
Veteran Member
Join Date: Jul 2010
Location: Argentina
Old 05-29-2011 , 12:05   Re: Me podrian explicar un poco mas sobre %s %d %L
#3

%d = integer
%s = strings
%L = lang

El %d no eran numeros enteros? Toy confundido xD
Code:
new szTemp[64];formatex(szTemp,charsmax(szTemp),"Soy yop :D")

client_print(plr,print_chat,"%s",szTemp)
Code:
new g_var = 15

client_print(plr,print_chat,"Soy el numerito %d",g_var)
Code:
public plugin_init()
{
      code...
      register_dictionary("tu_archivo_lang.txt")
}

client_print(plr,print_chat,"Este es un LANG - %L",id,LANG_EN_ARCHIVIN)
Adentro de tu archivo lang pones el text, por ejemplo:

LANG_EN_ARCHIVIN = Caca :$

y te va a aparecer "Caca :$" en el cs enves de %L
__________________

Last edited by Manu127; 05-29-2011 at 12:26.
Manu127 is offline
Send a message via MSN to Manu127 Send a message via Skype™ to Manu127
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: España
Old 05-29-2011 , 12:08   Re: Me podrian explicar un poco mas sobre %s %d %L
#4

¿Algun ejemplo?
AlgoChikitito is offline
Manu127
Veteran Member
Join Date: Jul 2010
Location: Argentina
Old 05-29-2011 , 12:26   Re: Me podrian explicar un poco mas sobre %s %d %L
#5

Edit, fijate arriba
__________________
Manu127 is offline
Send a message via MSN to Manu127 Send a message via Skype™ to Manu127
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: España
Old 05-29-2011 , 12:35   Re: Me podrian explicar un poco mas sobre %s %d %L
#6

Gracias, aprendi mucho

Edit: %L tambien sirve para hud?

Last edited by AlgoChikitito; 05-29-2011 at 12:38.
AlgoChikitito is offline
Manu127
Veteran Member
Join Date: Jul 2010
Location: Argentina
Old 05-29-2011 , 13:44   Re: Me podrian explicar un poco mas sobre %s %d %L
#7

sipsip para todo string
__________________
Manu127 is offline
Send a message via MSN to Manu127 Send a message via Skype™ to Manu127
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 05-29-2011 , 22:01   Re: Me podrian explicar un poco mas sobre %s %d %L
#8

http://www.cplusplus.com/reference/c...cstdio/printf/
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode