07.05.2018, 16:43
Maybe you reset the variables after the database load them.
I don't see something wrong at the code that i gave to you now. Either at your code that you posted.
Also try again this:
I don't see something wrong at the code that i gave to you now. Either at your code that you posted.
Also try again this:
PHP код:
function SaveAccount( playerid )
{
new query_string[ 5000 ];
format( query_string, sizeof( query_string ), "UPDATE `accounts` SET `player_name` = '%s', `sex` = '%s', `rasa` = '%s', \
`religia` = '%s' WHERE `id` = '%d'", pInfo[ playerid ][ pName ], pInfo[ playerid ][ pPassword ], pInfo[ playerid ][ pSex ], pInfo[ playerid ][ pRasa ],
pInfo[ playerid ][ pReligia ], pInfo[ playerid ][ pID ] );
mysql_function_query( mysql_connect_ID, query_string, false, "", "" );
printf( "Дaннua aeeaунoa %d(%s) бuлe nоo?aнaнu.", pInfo[ playerid ][ pID ], pInfo[ playerid ][ pName ] );
return 1;
}