String en Dialogs
#1

Hola!

Existe alguna forma para insertar una string en un dialog? Como? Algun Ejemplo?
Reply
#2

pawn Код:
new string[128];
format(string, 128, "tus textos.", tus valores);
ShowPlayerDialog(playerid, TU_ID, DIALOG_STYLE_MESSAGE/LIST, "Texto", string, "Aceptar", " ");
Reply
#3

pawn Код:
new Nombre[MAX_PLAYER_NAME];
new Str[128];  
GetPlayerName(playerid, Nombre, sizeof(Nombre));
format(Str, sizeof(Str), "Has Spawneado %s[%d]", Nombre, playerid);
ShowPlayerDialog(playerid, 1 , DIALOG_STYLE_MSGBOX , "Informacion" , Str , "Aceptar" , "Cancelar" );
Uso de Format
Reply
#4

pawn Код:
new string[128];
strcat(string, "Hola Esta es la primer Linea \n", 31);
strcat(string, "Hola Esta es la segunda Linea  \n", 33);
strcat(string, "Hola Esta es la trecer Linea y ultima.", 38);
ShowPlayerDialog(playerid, iddialog , DIALOG_STYLE_MSGBOX , "Informacion" , string , "Aceptar" , "Cancelar" );
https://sampwiki.blast.hk/wiki/Strcat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)