Is this the right way to use strings in mysql callbacks?
#9

Can you show us your code? since there's no variable of the Player's name

pawn Код:
//you don't have any variable or something that get the Player's name
UPDATE username = `%s` where ID = %d", ID)
pawn Код:
//Code that gets the Player's username
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
UPDATE username = `%s` where ID = %d",PlayerName, ID)
This would help you learning MySQL, just read the topic and you'll learn MySQL
Link: https://sampforum.blast.hk/showthread.php?tid=159785
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)