25.06.2011, 20:31
The way you formatted the name messsage, do the same with age, date of birth, city.
I mean that, add more strings, format them and SendClientMessage Them..
Example (Won't work if you just copy-paste it):
I mean that, add more strings, format them and SendClientMessage Them..
Example (Won't work if you just copy-paste it):
pawn Код:
new name[40], age[20], dob[40], city[40]; //Creating all the strings.
format(name,sizeof(name),"Name: %s",GetName(id)); //formatting the name string.
format(age,sizeof(age),"Age: %i",PlayerInfo[id][AGE]); //formatting age string by getting the age value from enum.
format(dob,sizeof(dob),"Date of Birth: %s",PlayerInfo[id][DOB]); //formatting dob string (same as above^).
format(city,sizeof(city),"City of Birth: %s",PlayerInfo[id][CITY]); //formatting city string (same as above^).
//Now, sending them all to the cmd user.
SendClientMessage(playerid, 0xFFFFFFFF, name);
SendClientMessage(playerid, 0xFFFFFFFF, age);
SendClientMessage(playerid, 0xFFFFFFFF, dob);
SendClientMessage(playerid, 0xFFFFFFFF, city);