Esta bien el codigo ?
#1

Bueno ps estoy haciendo un trabajo mediante dialogos y quisiera saber si este dialog estб bien echo. Es un dialog tipo INPUT y ya lo tengo todo definido,pero ahora solo quiero saber si el codigo estб bien escrito.

pawn Код:
ShowPlayerDialog(playerid, CLIENTE, DIALOG_STYLE_MSGBOX, "Precio", "El taxista te a ofrecido {0BC826}%s{FFFFFF}", imputtext, "Aceptar", "Cancelar"));
Reply
#2

Estб mal, las unicas funciones que permiten %s son format, y printf nada mбs, no se puede usar el %s directamente en un ShowPlayerDialog se tiene que hacer de la siguente manera
pawn Код:
new variable[128];
format(variable,sizeof variable,"El taxista te a ofrecido {0BC826}%s{FFFFFF}.",inputtext);
ShowPlayerDialog(playerid, CLIENTE, DIALOG_STYLE_MSGBOX, "Precio",variable,"Aceptar", "Cancelar");
Reply
#3

Gracias por ayudarme,Cierro.
Reply
#4

"El taxista te a ofrecido"

Es "El taxista te ha ofrecido"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)