MySQL GetOwnerName function
#4

i just found your problem. as im editing the code. i found that instead of using playerid you used vehicleid which you are getting the vehicle id not the player name. so can you give me how insert the playername in your database.

hmm im not sure about this. but try use %d instead of %s because you are getting vehicleid "a number" not a name

pawn Код:
format(string,sizeof(string),"Owner: %d",GetVehicleOwner(vehicleid));
SendClientMessage(playerid,WHITE,string);
Reply


Messages In This Thread
MySQL GetOwnerName function - by ProjectGANTON - 21.03.2013, 15:55
Re: MySQL GetOwnerName function - by Patrick - 21.03.2013, 15:58
Re: MySQL GetOwnerName function - by ProjectGANTON - 21.03.2013, 16:15
Re: MySQL GetOwnerName function - by Patrick - 21.03.2013, 16:39
Re: MySQL GetOwnerName function - by ProjectGANTON - 21.03.2013, 17:32

Forum Jump:


Users browsing this thread: 3 Guest(s)