GetPlayer Team
#6

what about this: new teamname[24];
PHP код:
if(gTeam[playerid] == COPSteamname "Cop";
if(
gTeam[playerid] == ARMYteamname "Army";
if(
gTeam[playerid] == FBIteamname "FBI";
if(
gTeam[playerid] == CIAteamname "CIA";
if(
gTeam[playerid] == CIVILIANSteamname "Civilian";
mysql_format(MySQLConquerysizeof(query), "UPDATE `players` SET `Team`=%s WHERE `ID`=%d AND user='%e'"teamnamepInfo[playerid][pID], PlayerName(playerid)); 
mysql_tquery(MySQLConquery""""); 
just add new column in database called Team and u can load it on login and store it to gTeam

PHP код:
GetPlayerTeamName(playerid)
{
        new 
teamname[24];
        if(
gTeam[playerid] == COPSteamname "Cop";
        if(
gTeam[playerid] == ARMYteamname "Army";
        if(
gTeam[playerid] == FBIteamname "FBI";
        if(
gTeam[playerid] == CIAteamname "CIA";
        if(
gTeam[playerid] == CIVILIANSteamname "Civilian";
    new 
name[24];
    
format(namesizeof name"%s"teamname);
    return 
name;

Reply


Messages In This Thread
GetPlayer Team - by STONEGOLD - 21.06.2015, 10:19
Re: GetPlayer Team - by Dusan01 - 21.06.2015, 10:23
Re: GetPlayer Team - by [XST]O_x - 21.06.2015, 10:31
Re: GetPlayer Team - by STONEGOLD - 21.06.2015, 10:56
Re: GetPlayer Team - by STONEGOLD - 21.06.2015, 10:59
Re: GetPlayer Team - by Dusan01 - 21.06.2015, 11:06
Re: GetPlayer Team - by [XST]O_x - 21.06.2015, 11:14
Re: GetPlayer Team - by STONEGOLD - 21.06.2015, 11:55
Re: GetPlayer Team - by Dusan01 - 21.06.2015, 11:59
Re: GetPlayer Team - by STONEGOLD - 22.06.2015, 04:50

Forum Jump:


Users browsing this thread: 3 Guest(s)