Little Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little Problem (
/showthread.php?tid=245828)
Little Problem -
GaB1TzZzu - 02.04.2011
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);
Re: Little Problem -
GaB1TzZzu - 06.04.2011
UP .
Re: Little Problem -
GaB1TzZzu - 10.04.2011
UP .
Re: Little Problem -
GaB1TzZzu - 11.04.2011
UP .
Re: Little Problem -
Rivera - 11.04.2011
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.