wc3edit.net

United Warcraft 3 map hacking!
It is currently April 27th, 2024, 7:55 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Username Check
PostPosted: September 5th, 2007, 3:04 am 
Offline
Newcomer

Joined: September 5th, 2007, 3:03 am
Posts: 12
How can I do a username check that will return an integer depending on which spot the username is in? ex: The username check is to check for mvd7793. I want an integer to be returned with the value of 1 if mvd7793 is in slot 1, 2 for slot 2 etc. Can you do this?


Top
 Profile  
 
 Post subject: Re: Username Check
PostPosted: September 5th, 2007, 3:27 am 
Offline
Forum Staff
User avatar

Joined: June 3rd, 2007, 8:03 pm
Posts: 1008
I would imagine somting like this, keep in mind that the fifth line definately isnt rite codeing you'll have to fix it up a bit but ya looks somting like that just find the rite names and you'll be fine. o.0

function namecheck takes nothing returns integer
i=0
loop
exitwhen i>11
if PlayerNameofPlayer(i)=="mvd7793"then
return i+1
endif
set i=i+1
endloop
endfunction

_________________
Get Your Map Making Pack Here! :wink:
Good flash games website! Come join me and have fun! :O
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)