15.07.2013, 14:19
Hi , how to put inputtext intro variabile , my code :
inputtext defined of GrafText[playerid] = strval(inputtext);. I want using inputtext in next dialog:
GrafText defined in:
Compiled , no errors bad when enter in the game not work...
P.S : Sorry for my bad english , i`m Romain.
Код:
if(dialogid == 1997) { if(response) { if(!strlen(inputtext)) { SendClientMessage(playerid,-1,"ERROR: Not write in the box text. !"); ShowPlayerDialog(playerid, 1997, DIALOG_STYLE_INPUT, "Graffity System", "Scrie in aceasta casuta cu ce nume vrei sa fie tatuaju.", "Ok", ""); return 1; } new Float:X, Float:Y, Float:Z, Float:A; GetPlayerFacingAngle(playerid, A); GetPlayerPos(playerid, X, Y, Z); SetObjectMaterialText(graffity, inputtext,0,OBJECT_MATERIAL_SIZE_256x256,"Italic",24,1,0xFFFFFFFF,0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER); GrafText[playerid] = strval(inputtext); ShowPlayerDialog(playerid, 1996, DIALOG_STYLE_LIST, "Color Graffity", "Red\nYellow\nGreen", "Select", "Close"); } }
Код:
if(dialogid == 1996) { if(response) { if(listitem == 0) { SetObjectMaterialText(graffity, GrafText,0,OBJECT_MATERIAL_SIZE_256x256,"Arial",24,1,0xFF0005FF,0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER); } if(listitem == 1) { SetObjectMaterialText(graffity, GrafText,0,OBJECT_MATERIAL_SIZE_256x256,"Arial",24,1,0xEBFF00FF,0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER); } if(listitem == 2) { SetObjectMaterialText(graffity, GrafText,0,OBJECT_MATERIAL_SIZE_256x256,"Arial",24,1,0x00FF1EFF,0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER); } } }
Код:
new GrafText[MAX_PLAYERS]
P.S : Sorry for my bad english , i`m Romain.