[Pomoc]Admin cars ( hitno )

Započeo Arnel_Bp, Septembar 18, 2013, 12:55:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: moja
Detaljan opis problema: napravio sam bazu i sve sto treba sad sam stavio auta u tu admin bazu i kako da stavim da ako nije admin da ga izbaci iz auta ili kad klikne enter na testaturi da mu pise text i da mu ne da da udje u auto hitno mi je to molim vas... evo kako sam ja stavio samo ovo sto znam
Dio skripte(neobavezno): //new AdminCar[24];

AdminCar[0] = AddStaticVehicleEx(411, 1545.1364, -1774.7589, 13.1984, 90.0000, 0,0, 100);
AdminCar[1] = AddStaticVehicleEx(411, 1545.1075, -1780.6455, 13.1984, 90.0000, 0,0, 100);
AdminCar[2] = AddStaticVehicleEx(411, 1544.4200, -1798.5818, 13.1984, 90.0000, 0,0, 100);
AdminCar[3] = AddStaticVehicleEx(411, 1544.4524, -1805.1797, 13.1984, 90.0000, 0,0, 100);
AdminCar[4] = AddStaticVehicleEx(560, 1416.6053, -1755.3035, 13.0924, -180.0000, 0,0, 100);
AdminCar[5] = AddStaticVehicleEx(560, 1421.0492, -1755.3333, 13.0924, -180.0000, 0,0, 100);
AdminCar[6] = AddStaticVehicleEx(445, 1427.3159, -1755.6667, 13.3752, -180.0000, 0,0, 100);
AdminCar[7] = AddStaticVehicleEx(445, 1432.4995, -1755.5829, 13.3752, -180.0000, 0,0, 100);
AdminCar[8] = AddStaticVehicleEx(445, 1437.0125, -1755.7402, 13.3752, -180.0000, 0,0, 100);
AdminCar[9] = AddStaticVehicleEx(580, 1443.1025, -1755.8296, 13.2504, -180.0000, 0,0, 100);
AdminCar[10] = AddStaticVehicleEx(580, 1448.3351, -1755.9144, 13.2504, -180.0000, 0,0, 100);
AdminCar[11] = AddStaticVehicleEx(409, 1443.6997, -1806.8262, 13.2299, 0.0000, 0,0, 100);
AdminCar[12] = AddStaticVehicleEx(409, 1439.8787, -1806.9739, 13.2299, 0.0000, 0,0, 100);
AdminCar[13] = AddStaticVehicleEx(409, 1435.9773, -1807.0452, 13.2299, 0.0000, 0,0, 100);
AdminCar[14] = AddStaticVehicleEx(545, 1487.0256, -1747.1410, 13.2504, -180.0000, 0,0, 100);
AdminCar[15] = AddStaticVehicleEx(545, 1492.0231, -1747.1492, 13.2504, -180.0000, 0,0, 100);
AdminCar[16] = AddStaticVehicleEx(545, 1496.5079, -1747.1665, 13.2504, -180.0000, 0,0, 100);
AdminCar[17] = AddStaticVehicleEx(545, 1501.4987, -1747.2662, 13.2504, -180.0000, 0,0, 100);
AdminCar[18] = AddStaticVehicleEx(545, 1506.7662, -1747.3145, 13.2504, -180.0000, 0,0, 100);
AdminCar[19] = AddStaticVehicleEx(578, 1545.6539, -1823.3435, 13.9732, 0.0000, 0,0, 100);
AdminCar[20] = AddStaticVehicleEx(578, 1537.6572, -1823.3175, 13.9732, 0.0000, 0,0, 100);
AdminCar[21] = AddStaticVehicleEx(578, 1528.8276, -1823.3624, 13.9732, 0.0000, 0,0, 100);
AdminCar[22] = AddStaticVehicleEx(578, 1520.3446, -1823.2351, 13.9732, 0.0000, 0,0, 100);
AdminCar[23] = AddStaticVehicleEx(578, 1511.8966, -1823.2645, 13.9732, 0.0000, 0,0, 100);

Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Citat: David (Sabljak) A.k.A SABO(T) poslato Septembar 18, 2013, 13:19:38 POSLE PODNE
stock AdminVozila (carid)
{
for(new i = 0; i < sizeof(AdminCar); i++)
{
if(carid == AdminCar[i]) return 1;
}
return 0;
}


stock IgracAdmin(playerid)
{
if(IsPlayerConnected(playerid))
{
    new admin = PlayerInfo[playerid][pAdmin];
    if(admin >= 1)
{
    return 1;
}
}
return 0;
}

[/code]

pod sta cu ovde ovo da stavim ?

C:\Users\A\Downloads\Desktop\srw1\gamemodes\aka.pwn(369) : error 012: invalid function call, not a valid address
C:\Users\A\Downloads\Desktop\srw1\gamemodes\aka.pwn(369) : warning 215: expression has no effect
C:\Users\ADownloads\Desktop\srw1\gamemodes\aka.pwn(369) : error 001: expected token: ";", but found ")"
C:\Users\A\Downloads\Desktop\srw1\gamemodes\aka.pwn(369) : error 029: invalid expression, assumed zero
C:\Users\ADownloads\Desktop\srw1\gamemodes\aka.pwn(369) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


evo ovo mi pise :( sta da radim sa ovim

Reseno brate hvala ti a oceli mi ovo biti sad na svako auto ?? kako da to napravim ?