Little Problem
#1

I saved in MySql table `Accent`, and i have a little problem. On OnPlayerConnect(playerid), it doesn't give me all Accent, just 2-3 letters..

OnPlayerConnect()
pawn Код:
strmid(PlayerInfo[playerid][pAccent], "None", 0, strlen("None"), 255);
OnPlayerLogin()
pawn Код:
if (rcnt == 144) PlayerInfo[playerid][pAccent] = strlen(PlayerInfo[playerid][pAccent], Field, 0, strlen(Field)-1, 255);
Reply
#2

UP .
Reply
#3

UP .
Reply
#4

UP .
Reply
#5

I don't think that you explained it...

my question is, why are you using strtok?

Well, as I can see, maybe you need length defines... like pAccent[128] or w/e.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)