Saving player colors
#4

Hello!

PHP код:
case DIALOG_COLORS+1:
{
    if(!
response)return 1;
    
SetPlayerColor(playerid,P_Colors[listitem]);
    
format(gsQuery,sizeof gsQuery,"UPDATE `Accounts` SET `Color`='%i' WHERE `Name`='%s'",listitem,getPlayerName(playerid));
    
mysql_query(gsquery,THREAD_NONE,playerid,connection);
    print(
gsQuery);
    return 
1;
}
//loading player data
cache_get_field_content(0,"Color",savingstring,connection);
SetPlayerColor(playerid,P_Colors[strval(savingstring)]); 
If that does not work, then give me the code that was issued by the print.

Mencent
Reply


Messages In This Thread
Saving player colors - by Vaishnav - 25.04.2015, 09:57
Re: Saving player colors - by Sledgehammer - 25.04.2015, 10:22
Re: Saving player colors - by Vaishnav - 25.04.2015, 12:37
Re: Saving player colors - by Mencent - 25.04.2015, 13:00
Re: Saving player colors - by Vaishnav - 25.04.2015, 13:12

Forum Jump:


Users browsing this thread: 1 Guest(s)