Convoy Trucking

Server related => Suggestions => Locked & Closed Suggestions => Topic started by: [GER]Melissa on December 11, 2011, 02:07

Title: Suggestion about the /id funktion
Post by: [GER]Melissa on December 11, 2011, 02:07
Maybe u know the problem, if u type in " /id tim " for example, but there are more than one person which begin with " tim " online and u only got the ID of one!
Its whould be better if u whould get a list of everyone who has " tim " in his name, or which name begin with " tim "!


But there should be a minimum of 3 letters.
If u whould get a list of everyone who have " [GER] " in his name u could get names like...
(i dont know if there are persons with this names on the server, but this are just examples)


[GER]Melissa ID 6
[GER]Riko ID 12
Martin[GER] ID 69


This Whould be bettter for Everyone!
Back to the example with " tim "
Tim_Bender ID 4
Tim_Messanger ID 48


If u try to get the id of Tim_Messanger u whould get just the ID of Tim_Bender cause he is the first "Tim" in the list, but cause of the list of more persons u whould get everyone with " Tim " in the name.


Maybe its whould be better for moderators and Admins too, so they wont mute/kick/ban the wrong person :D

Title: Re: Suggestion about the /id funktion
Post by: Konali on December 11, 2011, 02:10
i would like this:) simple and helps alot:)
+1
Title: Re: Suggestion about the /id funktion
Post by: DeHavilland on December 11, 2011, 09:12
1
Title: Re: Suggestion about the /id funktion
Post by: Google on December 11, 2011, 09:15
How about ID then the name?
Like :
ID: 23 Google .

Anyway +1 !
Title: Re: Suggestion about the /id funktion
Post by: $nake on December 11, 2011, 10:41
good idea :) type /id [ro] and u will get spam of [RO] players :)
but better idea would be that one player should have only his unique id,
even 35123 (number of registered accounts about) or just type /id tim to find only [RO]tim :)
Title: Re: Suggestion about the /id funktion
Post by: [GER]Melissa on December 11, 2011, 11:19
Quote from: Google on December 11, 2011, 09:15
How about ID then the name?
Like :
ID: 23 Google .

Anyway +1 !


In my opinion its the same if the ID is infront of the name, or behind^^
Title: Re: Suggestion about the /id funktion
Post by: Google on December 11, 2011, 18:53
Yeah it really dosen't matter that much!
Title: Re: Suggestion about the /id funktion
Post by: Ernests on December 11, 2011, 19:51
Simple and good idea. +1 Should be added. :)
Title: Re: Suggestion about the /id funktion
Post by: Storm94 on December 11, 2011, 23:25
Well...from my knowledge of scripting, this would take yet another scripting loop to accomplish. You see, the /id command just uses the sscanf paramater "u", which accepts either a partial/full playername or a playerid (try /id 5, and it will output player 5), and outputs the playerid (reference: http://forum.sa-mp.com/showthread.php?t=120356 (http://forum.sa-mp.com/showthread.php?t=120356)). Sscanf only outputs the first player it matches, not every player it matches, which means mick would have to loop through every player to see if the string that you pass through the command appears in any person's name. Harder than you think.
Title: Re: Suggestion about the /id funktion
Post by: Spekter on December 12, 2011, 02:42
Nice idea, Mel. Its kinda annoying when you want to get id of someone whos name is completely inside other person's name, like Bull and Bullet.


+1
Title: Re: Suggestion about the /id funktion
Post by: Xero on December 12, 2011, 12:12
I got lost after Storm said "sscanf paramater "u" " lol
Title: Re: Suggestion about the /id funktion
Post by: Storm94 on December 12, 2011, 14:55
Quote from: Xero the Christmas Poo on December 12, 2011, 12:12
I got lost after Storm said "sscanf paramater "u" " lol

Haha it can be a little difficult to understand. I just wanted people to know that its not easy.
Title: Re: Suggestion about the /id funktion
Post by: [GER]Melissa on December 12, 2011, 16:32
Quote from: Storm203 on December 12, 2011, 14:55
Quote from: Xero the Christmas Poo on December 12, 2011, 12:12
I got lost after Storm said "sscanf paramater "u" " lol

Haha it can be a little difficult to understand. I just wanted people to know that its not easy.


Maybe not easy, but i hope that its good :D
In my opinion it will help a lot!^^
Title: Re: Suggestion about the /id funktion
Post by: mick88 on December 14, 2011, 11:06
Quote from: Storm203 on December 11, 2011, 23:25
Well...from my knowledge of scripting, this would take yet another scripting loop to accomplish. You see, the /id command just uses the sscanf paramater "u", which accepts either a partial/full playername or a playerid (try /id 5, and it will output player 5), and outputs the playerid (reference: http://forum.sa-mp.com/showthread.php?t=120356 (http://forum.sa-mp.com/showthread.php?t=120356)). Sscanf only outputs the first player it matches, not every player it matches, which means mick would have to loop through every player to see if the string that you pass through the command appears in any person's name. Harder than you think.

After reading your post I imagine myself running in loops and asking everyone their names.
Title: Re: Suggestion about the /id funktion
Post by: Storm94 on December 14, 2011, 19:55
Quote from: mick88 on December 14, 2011, 11:06
Quote from: Storm203 on December 11, 2011, 23:25
Well...from my knowledge of scripting, this would take yet another scripting loop to accomplish. You see, the /id command just uses the sscanf paramater "u", which accepts either a partial/full playername or a playerid (try /id 5, and it will output player 5), and outputs the playerid (reference: http://forum.sa-mp.com/showthread.php?t=120356 (http://forum.sa-mp.com/showthread.php?t=120356)). Sscanf only outputs the first player it matches, not every player it matches, which means mick would have to loop through every player to see if the string that you pass through the command appears in any person's name. Harder than you think.

After reading your post I imagine myself running in loops and asking everyone their names.

Like I said, harder than you think :P
Title: Re: Suggestion about the /id funktion
Post by: Anri on December 14, 2011, 19:56
because u are a girl i say +1
Title: Re: Suggestion about the /id funktion
Post by: Storm94 on December 14, 2011, 20:12
Thats rather sexist Anri