Type Mismatch (argument 2) - Help
#3

pawn Код:
CMD:ucret(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Komutları kullanmak iзin цnce giriş yapmanız gerekmektedir.");
    if(TransportDuty[playerid] > 0)
    {
        if(TransportDuty[playerid] == 1)
        {
            TaxiDrivers -= 1;
        }
        new string[128];
        TransportDuty[playerid] = 0;
        TransportValue[playerid] = 0;
        TransportMoney[playerid] = 0;
        format(string, sizeof(string), "Paydos ettiniz. Kazanз: $%d.", TransportMoney[playerid]);
        SendClientMessage(playerid,COLOR_GREY, string);
        GiveZaiatMoney(playerid, TransportMoney[playerid]);
        return 1;
    }
    new playervehicleid = GetPlayerVehicleID(playerid);
    if(IsTaksiciVehicle(playervehicleid))
    {
        if(GetPlayerState(playerid) == 2)
        {
                        new tmp[256];
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid,COLOR_GREY, "/ucret [Ьcret]");
                return 1;
            }
            new moneys;
            moneys = strval(tmp);
            if(moneys < 1 || moneys > 5)
            {
                SendClientMessage(playerid,COLOR_GREY, "Ьcret $5'dan bьyьk, $1'dan kьзьk olamaz.");
                return 1;
            }
            TaxiDrivers += 1; TransportDuty[playerid] = 1; TransportValue[playerid] = moneys;
            SendClientMessage(playerid, "İşbaşı yaptınız.");
        }
        else
        {
            SendClientMessage(playerid,COLOR_GREY, "Sьrьcь koltuğunda değilsiniz.");
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_GREY, "Taksinin iзinde değilsiniz.");
    }
    return 1;
}
Reply


Messages In This Thread
Type Mismatch (argument 2) - Help - by Dobroski - 30.07.2012, 15:26
Re: Type Mismatch (argument 2) - Help - by SEnergy - 30.07.2012, 16:19
Re: Type Mismatch (argument 2) - Help - by Zarky - 31.07.2012, 00:13
Re: Type Mismatch (argument 2) - Help - by Dobroski - 31.07.2012, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)