/contract fix.
#1

pawn Код:
CMD:contract(playerid, params[]) {
    new
        id;
    if(playerVariables[playerid][pMoney] < 50000) {
    return SendClientMessage(playerid, COLOR_GREY, "You don't have sufficient funds!");
    }
    if(playerVariables[playerid][pMoney] >= 50000) {
    GetPlayerName(id, szPlayerName, MAX_PLAYER_NAME);
    format(szMessage, sizeof(szMessage), "You have contracted %d and been charged $50,000 for the contract.", id);
    SendClientMessage(playerid, COLOR_WHITE, szMessage);
    playerVariables[playerid][pMoney] -= 50000;
    playerVariables[id][pContracted] = 1;
    new
        stringo[255];
    format(stringo, sizeof(stringo), "Somebody has requested a hit on %d. You know what to do.", id);
    foreach(Player, x) {
            if (playerVariables[x][pGroup] == 10 && playerVariables[x][pGroupRank] >= 3) {
                SendClientMessage(x, 0xF0F8FFFF, stringo);
            }
        }
    }
    return 1;
}
Everything is fine until you /contract someone, when you do /contract them, it shows "...15..." 15 isn't my ID, nor is it my name. Will +rep for anyone who posts with something helpful.
http://imgur.com/r9QeY,qvYOB
Reply


Messages In This Thread
/contract fix. - by Jack.7331 - 22.03.2012, 10:28
Re: /contract fix. - by Roel - 22.03.2012, 10:30
Re: /contract fix. - by Jack.7331 - 22.03.2012, 10:33

Forum Jump:


Users browsing this thread: 1 Guest(s)