[Help] Really needed help here -
Twinki1993 - 25.06.2011
Okay I started scripting RP server and I am stuck now... I scripted many of stuffs I just need help with this..
/showid playerid/partofname
Like this /showid 3
and the player ID:3 will recevie this
------------------------------------------------
Full Name: Kevin Fox
Age: 25
Date Of Birth: 09/05/1993
City Of Birth: Los Santos
------------------------------------------------
I tried to script this many times and only thing that I succeded is getting this
/showid 3
------------------------------------------------
Full Name: Kevin Fox
------------------------------------------------
But I need help...
Srsly please help me. I am working on Game mode, so you just know. And when I release it I will put credits to guy who makes this for me...
So basically I need :
Full name show
Age
Date of birth
City of birth
All of these things are already scripted I just need them to be shown in /showid
Re: [Help] Really need help here -
Twinki1993 - 25.06.2011
PS: I am not some guy who knows to script good, I started it like 1 month ago but I am lacking much. So please help me!
Re: [Help] Really needed help here -
Wesley221 - 25.06.2011
Show us the variables where you store the age, date of birth, city of birth in
Re: [Help] Really needed help here -
Twinki1993 - 25.06.2011
I cannot. Because I am on my phone and I cannot use PC since it's broke... My whole script is on my CD.
Re: [Help] Really needed help here -
iPLEOMAX - 25.06.2011
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);
Re: [Help] Really needed help here -
Twinki1993 - 25.06.2011
Doesnt work... I mean I tried the thing you said but it's not working... Could anyone post whole thing? I tried to like copy paste my name thingies and transfered them to Age and bla bla but it was not working...
Re: [Help] Really needed help here -
iPLEOMAX - 25.06.2011
Quote:
Originally Posted by Twinki1993
Doesnt work... I mean I tried the thing you said but it's not working... Could anyone post whole thing? I tried to like copy paste my name thingies and transfered them to Age and bla bla but it was not working...
|
We can't help you further. You need to show us your enum or the way you store data.
Re: [Help] Really needed help here -
Twinki1993 - 25.06.2011
And as I already said I am working on a gamemode and I am not so pro at scripting... I managed to do some things, but mostly my friend is doing all the scripting.. I need help really fast.. We said that game mode will be released in few days and it's not finished..
Re: [Help] Really needed help here -
Twinki1993 - 25.06.2011
Since I cannot show you just download GF and you will see. We are basically editing GF. Not basically, we are editing GF. So you probably know what I am talking about now.
Re: [Help] Really needed help here -
iPLEOMAX - 25.06.2011
Wait for 15+ minutes. I'll edit this post when i make it. Remember, its not a basic thing. new pawno users will not understand everything.
EDIT: Bleh, it's gonna take some more time.
Re: [Help] Really needed help here -
Twinki1993 - 25.06.2011
I know. I could ask my friend about this but he's too busy theses days with scripting factions etc. etc. We are making unique faction system so as unique car system etc etc.. I just need to show that I am actually doing something and it's really needed for me. Thank you!
Re: [Help] Really needed help here -
Twinki1993 - 25.06.2011
Any updates?
Re: [Help] Really needed help here -
iPLEOMAX - 26.06.2011
Here: (Very Basic FS made in few minutes) Add the name to your server.cfg
[FS]BasicUserInfo: Code Paste
You will need sscanf2 plugin to use this FilterScript!!
Y_Less - sscanf2 - Main Topic