Saving string as a symbol.. MySQL
#3

1) Try using "ADD COLUMN" over "ADD". You can also try removing that column and adding it back.

2) Don't use strmid for copying strings!

pawn Код:
#define strcpy(%0,%1) \
    strcat((%0[0] = '\0', %0), %1)

mysql_fetch_field_row(savingstring, "playerteam");
strcpy(PlayerInfo[playerid][playerteam], savingstring, 50);
3) This is the INCORRECT way:

pawn Код:
PlayerInfo[giveplayerid][playerteam] = team;
This is the correct way:

pawn Код:
strcpy(PlayerInfo[playerid][playerteam], team, 50);
Reply


Messages In This Thread
Saving string as a symbol.. MySQL - by Brandon_More - 03.12.2013, 10:25
Re: Saving string as a symbol.. MySQL - by Brandon_More - 04.12.2013, 14:16
Re: Saving string as a symbol.. MySQL - by Emmet_ - 04.12.2013, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)