[Help] Really needed help here
#5

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):

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);
Reply


Messages In This Thread
[Help] Really needed help here - by Twinki1993 - 25.06.2011, 20:22
Re: [Help] Really need help here - by Twinki1993 - 25.06.2011, 20:24
Re: [Help] Really needed help here - by Wesley221 - 25.06.2011, 20:26
Re: [Help] Really needed help here - by Twinki1993 - 25.06.2011, 20:30
Re: [Help] Really needed help here - by iPLEOMAX - 25.06.2011, 20:31
Re: [Help] Really needed help here - by Twinki1993 - 25.06.2011, 20:33
Re: [Help] Really needed help here - by iPLEOMAX - 25.06.2011, 20:36
Re: [Help] Really needed help here - by Twinki1993 - 25.06.2011, 20:36
Re: [Help] Really needed help here - by Twinki1993 - 25.06.2011, 20:38
Re: [Help] Really needed help here - by iPLEOMAX - 25.06.2011, 20:41
Re: [Help] Really needed help here - by Twinki1993 - 25.06.2011, 20:45
Re: [Help] Really needed help here - by Twinki1993 - 25.06.2011, 23:19
Re: [Help] Really needed help here - by iPLEOMAX - 26.06.2011, 09:09

Forum Jump:


Users browsing this thread: 4 Guest(s)