[Ajuda] MySQL query
#4

Quote:
Originally Posted by GSantana
Посмотреть сообщение
use como base:

PHP код:
new String[80], aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanamesizeof(aname));
format(Stringsizeof(String), "UPDATE `contas` SET ban = %d WHERE name = '%s'",ban[playerid], aname);
mysql_tquery(ConexaoString);
//para verificar
format(Stringsizeof(String), "SELECT `contas` FROM `ban` WHERE `name` = '%s'"aname);
mysql_tquery(ConexaoString);
cache_get_value_name_int(0"ban"ban[playerid]);
if(
ban[playerid] != 0
{
//funзгo caso ele esteja banido

mysql_tquery por que? tenho que criar outra callback? nгo dб pra fazer tudo numa sу?
Reply


Messages In This Thread
MySQL query - by Electrifying - 07.10.2018, 16:11
Re: MySQL query - by GSantana - 07.10.2018, 18:13
Re: MySQL query - by GSantana - 07.10.2018, 18:25
Re: MySQL query - by Electrifying - 07.10.2018, 18:45
Re: MySQL query - by GSantana - 07.10.2018, 19:31
Re: MySQL query - by Electrifying - 07.10.2018, 21:01
Re: MySQL query - by GSantana - 07.10.2018, 21:12
Re: MySQL query - by Malandrin - 08.10.2018, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)