Search and replace string
#1

Hi everyone,

I made something a few mins ago, that changes your name, but the problem is, that the Vehicle system i have, looks to your name and check if it's the same as in the vehiclefile.(system uses fread)

What i want to do here, is create a function that loops trough the folder, searches for the name the person has, and replaces it with the given name.

Like this:

pawn Код:
GetPlayerName(playerid)//in my case Jari_Johnson
newname//and replaces it with this
I hope someone knows how to do this

Thanks in advance
((I've searched very good, but i couldn't find anything that explained it very good..))
Reply


Messages In This Thread
Search and replace string - by Jstylezzz - 07.05.2012, 12:06
Re: Search and replace string - by Jonny5 - 07.05.2012, 12:25
Re: Search and replace string - by Jstylezzz - 07.05.2012, 12:45
Re: Search and replace string - by Jstylezzz - 07.05.2012, 14:12

Forum Jump:


Users browsing this thread: 3 Guest(s)