[HELP] Creating Varibles For Admins [Rep+]
#8

change onplayerconnect code to

GetPlayerName( playerid, strPlayerName, sizeof( strPlayerName ) );
format( strQuery, sizeof( strQuery ), "SELECT * FROM players WHERE name='%s'", strPlayerName );
mysql_query( strQuery );
mysql_store_result();
while( mysql_fetch_row_format( strQuery,"|" ) )
{
sscanf( strQuery, "p<|>i",strSavedString ); PlayerInfo[playerid][pAdminLevel] = strSavedString;
}
mysql_free_result();


should work now
Reply


Messages In This Thread
[HELP] Creating Varibles For Admins [Rep+] - by xMichaelx - 06.12.2011, 09:41
Re: [HELP] Creating Varibles For Admins [Rep+] - by T0pAz - 06.12.2011, 10:50
Re: [HELP] Creating Varibles For Admins [Rep+] - by xMichaelx - 06.12.2011, 10:59
Re: [HELP] Creating Varibles For Admins [Rep+] - by T0pAz - 06.12.2011, 11:19
Re: [HELP] Creating Varibles For Admins [Rep+] - by xMichaelx - 06.12.2011, 11:35
Re: [HELP] Creating Varibles For Admins [Rep+] - by xMichaelx - 06.12.2011, 12:01
Re: [HELP] Creating Varibles For Admins [Rep+] - by T0pAz - 06.12.2011, 12:08
Re: [HELP] Creating Varibles For Admins [Rep+] - by THE_KNOWN - 06.12.2011, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)