Why does this do this
#1

Well i have made my own system but when i try and sell to some one it says this


"You have offered to sell your house to (NAME) for (AMOUNT)"


But the amount always shows " 0 " in game why does it do that


pawn Code:
CMD:sellhouse(playerid,params[])
{
    for(new i = 0; i<MAX_PLAYERS; i++)
    {
        new Target;
        new Amount;
        if(sscanf(params, "i", Target, Amount)) return SendClientMessage(playerid, COLOR_GREEN, "/sellhouse [ID] [Amount]");
        if(!IsPlayerConnected(Target))
            return SendClientMessage(playerid, COLOR_RED, "ERROR: Player is not connected");
        if(HInfo[playerid][Owned] == 0) return SendClientMessage(playerid, COLOR_RED, "You do not own a house");
        new tname[MAX_PLAYER_NAME];
        GetPlayerName(Target,tname,sizeof(tname));
        GetPlayerName(playerid,pname,sizeof(pname));
        new pstring[256];
        new tstring[256];
        format(pstring,sizeof(pstring),"You have offered to sell your house to %s for %d",tname, Amount);
        format(tstring,sizeof(tstring),"You have been offered to buy %s's house for %d",pname, Amount);
        SendClientMessage(Target, COLOR_GREEN, tstring);
        SendClientMessage(playerid, COLOR_GREEN, pstring);
    }
    return 1;
}

Thank You


Please Help Me Please
Reply


Messages In This Thread
Why does this do this - by Scripter12345 - 08.05.2012, 21:35
Re: Why does this do this - by warcodes_ - 08.05.2012, 21:40
Re: Why does this do this - by Vince - 08.05.2012, 21:42
Re: Why does this do this - by ReneG - 08.05.2012, 21:44
Re: Why does this do this - by warcodes_ - 08.05.2012, 21:48
Re: Why does this do this - by Scripter12345 - 08.05.2012, 22:02
Re: Why does this do this - by kaisersouse - 08.05.2012, 22:14
Re: Why does this do this - by Scripter12345 - 08.05.2012, 22:17
Re: Why does this do this - by ReneG - 08.05.2012, 22:20
Re: Why does this do this - by kaisersouse - 08.05.2012, 22:20

Forum Jump:


Users browsing this thread: 3 Guest(s)