07.05.2012, 12:06
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:
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..))
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

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