Posts: 220
Threads: 54
Joined: Jan 2014
Good morning.
I have a dialog, and I want to score recognize the name of a person connected to the server, it displays a message.
I just want the game to search for a player from the dialog ..
Posts: 220
Threads: 54
Joined: Jan 2014
pawn Код:
if(dialogid == 0)
{
if(!response)
{
return 1;
}
new tmp[64], idx, giveplayerid, string[100];
tmp = strtok(inputtext, idx);
giveplayerid = ReturnUser(tmp);
format(string, sizeof(string), "Name: %s", GetName(giveplayerid));
PlayerTextDrawSetString(playerid, Textdraw1[playerid], string);
PlayerTextDrawShow(playerid, Textdraw1[playerid]);
}
Why it's not work?
Posts: 220
Threads: 54
Joined: Jan 2014
Posts: 220
Threads: 54
Joined: Jan 2014
When I do that, then I want to display the age of the person (Player_infos[playerid][p_Age] normally)
Once I do that, and it does not work, why?:
pawn Код:
new stringage[50];
format(stringage, sizeof(stringage), "Age: %d", Player_infos[giveplayerid][p_Age]);
PlayerTextDrawSetString(playerid, Textdraw7[playerid], stringage);
PlayerTextDrawShow(playerid, Textdraw7[playerid]);
It always puts the age at zero ...
Posts: 220
Threads: 54
Joined: Jan 2014
Posts: 220
Threads: 54
Joined: Jan 2014
How we define the inputtext = giveplayerid?
Posts: 220
Threads: 54
Joined: Jan 2014
For use (exemple):
Player_infos[giveplayerid][p_Age]