MySQL GetOwnerName function
#1

Fixed it. Thanks!
Reply
#2

im not sure about this but instead of this
pawn Код:
new MySQLown = Veicolo[vehicleid][mOwner];
USE
pawn Код:
//parameters mysql_real_escape_string(const source[], destination[], connectionHandle);
new MySQLown[40];
mysql_real_escape_string(Veicolo[vehicleid][mOwner] ,MySQLown);
EDIT

let me try to fix it.
Reply
#3

I fixed it.
Reply
#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
#5

I fixed it, thanks for answering. Can you help me here too?
https://sampforum.blast.hk/showthread.php?tid=420431
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)