MySQL pays
#7

Quote:
Originally Posted by [HUN]Amf
Посмотреть сообщение
Now working, but, the most smaller run only .. so, if have 4 player who PayCheck > 0, code run 4x for the most smaller ID ..
Alright. Also, this code is pretty bad. I mean your loop is kind of false. IsPlayerConnected should be placed higher like that. Take a look at this one.
PHP код:
for(playerid 0MaxPlayer GetPlayerPoolSize(); playerid <= MaxPlayerplayerid++)
{
    if(!
IsPlayerConnected(playerid) || IsPlayerNPC(playerid))
        continue;
    if( 
CompareExNAMEPlayerNameplayerid ) ) )
        
SendFormatMessageplayerid, -1"[{f3ff4a} SZERVER {ffffff}] Fizetйsed бtutalva a bankszбmlбdra! ( {f3ff4a}$%s{ffffff} )"FormatNumberPAY ) );

If still that doesn't work, can you please show the function "CompareEx".
Reply


Messages In This Thread
MySQL pays - by [HUN]Amf - 05.04.2018, 16:16
Re: MySQL pays - by Gforcez - 05.04.2018, 16:41
Re: MySQL pays - by [HUN]Amf - 05.04.2018, 17:46
Re: MySQL pays - by m4karow - 05.04.2018, 17:48
Re: MySQL pays - by Dayrion - 05.04.2018, 17:49
Re: MySQL pays - by [HUN]Amf - 05.04.2018, 17:53
Re: MySQL pays - by Dayrion - 05.04.2018, 18:00
Re: MySQL pays - by [HUN]Amf - 05.04.2018, 18:01
Re: MySQL pays - by Dayrion - 05.04.2018, 18:03
Re: MySQL pays - by [HUN]Amf - 05.04.2018, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)