SA-MP Forums Archive
My Command no respon ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: My Command no respon ? (/showthread.php?tid=629836)



My Command no respon ? - Jihanz - 04.03.2017

Why I can not respond to orders if there is something wrong please correct
This is an order to sell a house
PHP код:
CMD:jualrumah(playeridparams[])
{
    new 
nama[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamasizeof(nama));
    for(new 
i=0i<sizeof(rInfo); i++)
    {
        if(
rInfo[i][r_id]) continue;
        if(
IsPlayerInRangeOfPoint(playerid3,rInfo[i][r_x],rInfo[i][r_y],rInfo[i][r_z]))continue;
        if(!
strlen(rInfo[i][r_pemilik]))
        if(!
strcmp(rInfo[i][r_pemilik],nama,true))
        {
            
rInfo[i][r_harga]=rInfo[i][r_harga]/2;
            
GivePlayerMoney(playeridrInfo[i][r_harga]);
            
strmid(rInfo[i][r_pemilik], ""0MAX_PLAYER_NAMEMAX_PLAYER_NAME);
            
updateRumah(i);
            
saveRumah(i);
            return 
1;
        }
        return 
SendClientMessage(playerid,Warna_Merah,"Kamu bukan pemilik rumah ini");
    }
    return 
1;

Thanks Before