pawno erori
#3

Try this:
pawn Код:
stock AddFlitsPaal(playerid, giveplayerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{
    new fine[MAX_PLAYERS];
    new str[128];

    if(objectcreated!=maxobject)
    {
        CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10);
        objectcreated++;
    }
    if((distance1[playerid])>speed)
    {
        if(IsPlayerInCircle(playerid, xx, yy, radius)  && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)
        {
            fine[playerid]=((distance1[playerid]*17/10)-speed);
            GivePlayerMoney(playerid, -2000);
            format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]);
            SendClientMessage(playerid, VERDEFRACO, str);
            PlayerInfo[giveplayerid][pCarLicPoint] += 1;
            if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15)
            {
                format(str, sizeof(str), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De La  %s  (Ai Acumulat 15 Puncte De Penalizare), reason: %s", sendername, (result));
                SendClientMessage(giveplayerid, COLOR_ADMIN, str);
                PlayerInfo[giveplayerid][pCarLic] = 0;
                PlayerInfo[giveplayerid][pCarLicPoint] = 0;
                return 1;
            }
            PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
        }
    }
}
I'm not sure if that's gonna work but....
Reply


Messages In This Thread
pawno erori - by RaZvY - 11.02.2011, 06:47
Re: pawno erori - by Antonio [G-RP] - 11.02.2011, 06:56
Re: pawno erori - by xRyder - 11.02.2011, 06:59
Re: pawno erori - by RaZvY - 11.02.2011, 13:34

Forum Jump:


Users browsing this thread: 2 Guest(s)