[Ajuda] Player TEXT
#1

eae galera boum ? eu queria sabe como passo esse codigo de GAMEFORPLAYER para TEXTDRAW

pawn Код:
format(STRX, sizeof(STRX), "~g~]Casa]~n~~y~Dono:~w~Ninguem~n~~y~Valor:~w~R$%d~n~~g~/comprarcasa~n~~r~ENTER", dini_Int(string, "Preco"));
GameTextForPlayer(playerid, STRX, 5000, 5);
Reply
#2

pawn Код:
new string2[222];
format(string2, sizeof(string2), "~g~ Casa N° %d ~n~ ~y~ Dono: ~w~ Ninguem ~n~ ~y~ Valor: ~w~ R$ %d ~n~ ~g~ /comprarcasa ~n~ ~r~ ENTER", c,dini_Int(string, "Preco"));
Create3DTextLabel(string2,0xFFFFFFAA, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ")+0.75,20.0,0,1);
so mi responde uma coisa agora o codigo todo e esse ?

pawn Код:
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string)){
if(pickupid == dini_Int(string, "Id")){
if(dini_Int(string, "TDono") == 1){
format(STRX, sizeof(STRX), "~b~]Casa]~n~~y~Dono:~w~%s~n~~r~ENTER", dini_Get(string, "Dono"));
GameTextForPlayer(playerid, STRX, 5000, 5);
//format(STRX, sizeof(STRX), "Dono da casa: %s, Pagou nela: R$%d", dini_Get(string, "Dono"), dini_Int(string, "Preco"));
//SendClientMessage(playerid, Azul, STRX);
} else {
//format(STRX, sizeof(STRX), "Casa a venda, Valor de compra: R$%d, use /comprarcasa", dini_Int(string, "Preco"));
//SendClientMessage(playerid, Verde, STRX);
format(STRX, sizeof(STRX), "~g~]Casa]~n~~y~Dono:~w~Ninguem~n~~y~Valor:~w~R$%d~n~~g~/comprarcasa~n~~r~ENTER", dini_Int(string, "Preco"));
GameTextForPlayer(playerid, STRX, 5000, 5);
}
}
}
}
Reply
#3

pawn Код:
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string)){
new pickupid;
if(dini_Int(string, "TDono") == 0){
pickupid = CreatePickup(1273, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1);
dini_IntSet(string, "Id", pickupid);
new string2[222];
format(string2, sizeof(string2), "Casa N° %d\nDono: Ninguem\nValor: R$ %d\n/comprarcasa", c,dini_Int(string, "Preco"));
Create3DTextLabel(string2,0xFFFFFFAA, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ")+0.75,20.0,0,1);
} else {
if(dini_Int(string,"TDono") == 1){
pickupid = CreatePickup(1272, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1);
dini_IntSet(string, "Id", pickupid);
new string2[222];
format(string2, sizeof(string2), "Casa N° %d\nDono %s\nValor R$ %d", c,dini_Get(string, "Dono"),dini_Int(string, "Preco"));
Create3DTextLabel(string2,0xFFFFFFAA, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ")+0.75,20.0,0,1);
}
}
proximacasa++;
}
}
Reply
#4

vlw a todos PERREIRA nao e nao o meu Eu fiz de Base o COD do BLG
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)