My Command no respon ?
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)