Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Novica poslato Februar 28, 2012, 21:18:00 POSLE PODNE

Naslov: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 21:18:00 POSLE PODNE
Skripta koju koristim:Moju
Detaljan opis problema:Pa ovako interesuje me kako da stavim da pise iznad necije glave nesto npr iznad admina da pise admin :)???
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Nxidza poslato Februar 28, 2012, 21:23:01 POSLE PODNE
A koja je to tvoja skripta,definisi...od 0 ili?

Uglavnom uradis proveru kao kad' radis proveru npr za komandu /kick,evo ti jedan primer :


if(PlayerInfo[playerid][pAdmin] >= 1)
{
  Adm = Create3DTextLabel("Admin",BOJA TVOJA,30.0,40.0,50.0,40.0,0);
      Attach3DTextLabelToPlayer(Admin, playerid, 0.0, 0.0, 0.0);
    }


i skroz gore definises :

new Text3D:Adm; to je to,samo tamo gde pise BOJA TVOJA postavi boju koju zelis i ovo stavi pod onplayerconnect ili sta vec zelis ...
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 21:24:19 POSLE PODNE
Ako za jos nesto trebas napisi !
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Nxidza poslato Februar 28, 2012, 21:25:59 POSLE PODNE
Citat: Aldin Begovic poslato Februar 28, 2012, 21:24:19 POSLE PODNE
evo ti za admina /duty
na vrh moda
new Text3D:label[MAX_PLAYERS];



if (strcmp(cmd, "/duty", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
  SetPlayerArmour(playerid, 100);
  label[playerid] = Create3DTextLabel("Text po zelji ",COLOR_RED,30.0,40.0,50.0,40.0,0);
      SetPlayerHealth(playerid, 100);
  GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), "", sendername);
      Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.9);
  SendAdminMessage(COLOR_RED,string);
}
    return 1;
}

   if (strcmp(cmd, "/dutyoff", true)==0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
SetPlayerArmour(playerid, 0);
Delete3DTextLabel(label[playerid]);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Iskljucio si admin duznost!", playerid, sendername);
SendClientMessage(playerid, COLOR_YELLOW,string);
}
    return 1;
}

Je li,ti si de*il da se moram tako izraziti?Sta sam ja napisao?Ovo ti je druga tema u kojoj samo ponavljas sta sam napisao !  >:(
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 21:28:02 POSLE PODNE
oke brate moze sad pomoc ja da izmenim nesto kad ono izlazi 26 errora -.-
(1794) : error 004: function "SafeGivePlayerMoney" is not implemented
(1823) : error 004: function "SafeGivePlayerMoney" is not implemented
(1859) : error 004: function "SafeResetPlayerWeapons" is not implemented
(1860) : error 004: function "SafeGivePlayerWeapon" is not implemented
(1887) : error 004: function "SafeResetPlayerWeapons" is not implemented
(2478) : error 004: function "PlayerToPoint" is not implemented
(2489) : error 004: function "PlayerToPoint" is not implemented
(2501) : error 004: function "PlayerToPoint" is not implemented
(2505) : error 004: function "PlayerToPoint" is not implemented
(2517) : error 004: function "PlayerToPoint" is not implemented
(2521) : error 004: function "PlayerToPoint" is not implemented
(2525) : error 004: function "PlayerToPoint" is not implemented
(2529) : error 004: function "PlayerToPoint" is not implemented
(2533) : error 004: function "PlayerToPoint" is not implemented
(2537) : error 004: function "PlayerToPoint" is not implemented
(2541) : error 004: function "PlayerToPoint" is not implemented
(2545) : error 004: function "PlayerToPoint" is not implemented
(2557) : error 004: function "PlayerToPoint" is not implemented
(2561) : error 004: function "PlayerToPoint" is not implemented
(2565) : error 004: function "PlayerToPoint" is not implemented
(2569) : error 004: function "PlayerToPoint" is not implemented
(2573) : error 004: function "PlayerToPoint" is not implemented
(2585) : error 004: function "PlayerToPoint" is not implemented
(2589) : error 004: function "PlayerToPoint" is not implemented
(2593) : error 004: function "PlayerToPoint" is not implemented
(2605) : error 004: function "PlayerToPoint" is not implemented


Eo deo skripte tj tamo gde izbacuje errore
public IsAtFishPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
}
return 0;
}

public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
    {//Cluckin Bell
        return 1;
    }
    else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
{//Burgershot
    return 1;
}
else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
{//Well Stacked Pizza
    return 1;
}
}
return 0;
}

public IsAtBar(playerid)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
{//In reet bar (with girlfriend), and in Havanna
    return 1;
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 21:28:47 POSLE PODNE
fali ti negdje }
provjeri lijepo :D
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 21:29:19 POSLE PODNE
Citat: Nxidza poslato Februar 28, 2012, 21:25:59 POSLE PODNE
Citat: Aldin Begovic poslato Februar 28, 2012, 21:24:19 POSLE PODNE
evo ti za admina /duty
na vrh moda
new Text3D:label[MAX_PLAYERS];



if (strcmp(cmd, "/duty", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
  SetPlayerArmour(playerid, 100);
  label[playerid] = Create3DTextLabel("Text po zelji ",COLOR_RED,30.0,40.0,50.0,40.0,0);
      SetPlayerHealth(playerid, 100);
  GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), "", sendername);
      Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.9);
  SendAdminMessage(COLOR_RED,string);
}
    return 1;
}

   if (strcmp(cmd, "/dutyoff", true)==0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
SetPlayerArmour(playerid, 0);
Delete3DTextLabel(label[playerid]);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Iskljucio si admin duznost!", playerid, sendername);
SendClientMessage(playerid, COLOR_YELLOW,string);
}
    return 1;
}

Je li,ti si de*il da se moram tako izraziti?Sta sam ja napisao?Ovo ti je druga tema u kojoj samo ponavljas sta sam napisao !  >:(
Miss nemoj da se ljutis al sad cu da edit :S
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 21:31:03 POSLE PODNE
xD Brate ja sam ovde postavio te errore posto nzm da ih resim xD

EDIT:I da brate kako da znam de treba da stavim ono za admin da pise iznad glave -.- ??? msm u koji deo skripte to ide :) ?
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 21:33:24 POSLE PODNE
evo tu bro ispod ovoga
public OnPlayerCommandText(playerid, cmdtext[])
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 21:36:05 POSLE PODNE
Citat: Nxidza poslato Februar 28, 2012, 21:23:01 POSLE PODNE
A koja je to tvoja skripta,definisi...od 0 ili?

Uglavnom uradis proveru kao kad' radis proveru npr za komandu /kick,evo ti jedan primer :


if(PlayerInfo[playerid][pAdmin] >= 1)
{
  Adm = Create3DTextLabel("Admin",BOJA TVOJA,30.0,40.0,50.0,40.0,0);
      Attach3DTextLabelToPlayer(Admin, playerid, 0.0, 0.0, 0.0);
    }



i skroz gore definises :

new Text3D:Adm; to je to,samo tamo gde pise BOJA TVOJA postavi boju koju zelis i ovo stavi pod onplayerconnect ili sta vec zelis ...
Znaci samo ovo ubacim i pisace iznad admina admin xD ako sam skontao :D
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 21:37:13 POSLE PODNE
da kao sto rece doticni gospodin ! samo prati njegove upute
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: milan_95 poslato Februar 28, 2012, 21:38:16 POSLE PODNE
Stavis ovako :

SendClientMessageIznadGlaveAkoJeCoekAdmin("Ja sam admin!");
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 21:39:03 POSLE PODNE
Oke a npr ako zelim da nesto drugo pise iznad admina :) ?
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 21:39:47 POSLE PODNE
Citat: Novica poslato Februar 28, 2012, 21:39:03 POSLE PODNE
Oke a npr ako zelim da nesto drugo pise iznad admina :) ?
SendClientMessageIznadGlaveAkoJeCoekAdmin(" zeljeni text");
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 21:41:57 POSLE PODNE
Oke tnx sad samo oko onih errora nmg da compile zbog errora moze pomoc kako da ih resim :) ?
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 21:50:45 POSLE PODNE
Citat: Novica poslato Februar 28, 2012, 21:41:57 POSLE PODNE
Oke tnx sad samo oko onih errora nmg da compile zbog errora moze pomoc kako da ih resim :) ?
Fali ti negdje } lijepo pregledao otvori oci i bice ok :D
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:02:54 POSLE PODNE
Brate mozete vi pomoci jbt trazim ali nema -.-
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: milan_95 poslato Februar 28, 2012, 22:06:01 POSLE PODNE
Probaj, verovatno je zbog ovoga sto ti Aldin kaze....Otvori cetvoro ociju !! Jer je mozda se negde zaturilo
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:07:55 POSLE PODNE
Brate eo trazim ali nista dao sam vam taj deo ae i vi potrazite -.- jbmti errore uff !
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: milan_95 poslato Februar 28, 2012, 22:09:33 POSLE PODNE
  if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
{//In reet bar (with girlfriend), and in Havanna
    return 1;



jesi ispod ovog return 1; stavio "}" ?


EDIT:Pomozite coeku......Jedino Aldin i ja pomazemo....Ukljucite se malo :O
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:10:51 POSLE PODNE
da brt :)
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: milan_95 poslato Februar 28, 2012, 22:12:14 POSLE PODNE
E onda ti ja nznm pomoci :D Nisam ja bas neki skripter....Ima mnogo boljih...Nznm sto se ne ukljuce malo ! Samo znaju traziti pomoc a nikad ne znaju da pomognu :O
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:13:02 POSLE PODNE
uf joj dajte ljudi pomozite pls !
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:15:23 POSLE PODNE
public IsAtCarrental(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(30.0,playerid,1696.5543,-1053.4685,23.9063))
{
return 1;
}
}
return 0;
}

public IsAtClothShop(playerid)
{
    if(IsPlayerConnected(playerid))
{
        if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
{//Binco & Suburban
    return 1;
}
else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
{//Zip & Victim
    return 1;
}
}
return 0;
}
public IsAtGasStation(playerid)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
{//LS
    return 1;
}
else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
{//LS
    return 1;
}
else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
{//SF
    return 1;
}
else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
{//Between LS and SF
    return 1;
}
else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
{//LV
    return 1;
}
else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
{//LV
    return 1;
}
else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
{//LV
    return 1;
}
else if(PlayerToPoint(8.0,playerid,656.4265,-559.8610,16.5015) || PlayerToPoint(6.0,playerid,656.3797,-570.4138,16.5015))
{//Dillimore
    return 1;
}
}
return 0;
}

public IsAtFishPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
}
return 0;
}

public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
    {//Cluckin Bell
        return 1;
    }
    else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
{//Burgershot
    return 1;
}
else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
{//Well Stacked Pizza
    return 1;
}
}
return 0;
}

public IsAtBar(playerid)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
{//In reet bar (with girlfriend), and in Havanna
    return 1;
}
else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734))
{//PIG Pen
    return 1;
}
else if(PlayerToPoint(4.0,playerid,-791.016,512.249,1336.41) || PlayerToPoint(10.0,playerid,-799.122,520.988,1336.41))
{//Nortenos House
    return 1;
}
}
return 0;
}
u ovom delu izbacuju oni errori -.-
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:19:29 POSLE PODNE
Ubacio sam ono sto su rekli ali i pre toga bio error -.- brt pise ti tamo koji su redovi to su ti redovi koji sam poslao xD ja sam nov u ovome tako da ako nije prov sve malo jasnije da se objasni xD
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 22:21:35 POSLE PODNE
Citat: Novica poslato Februar 28, 2012, 22:19:29 POSLE PODNE
Ubacio sam ono sto su rekli ali i pre toga bio error -.- brt pise ti tamo koji su redovi to su ti redovi koji sam poslao xD ja sam nov u ovome tako da ako nije prov sve malo jasnije da se objasni xD
u ovom codu sto si poslao sve su zagrade uredu :s
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:24:19 POSLE PODNE
Bilo je nesto kao event i ja to obrisao kao /pokrenicross meni to ne treba i ja to obrisao xD
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Aldin Begovic poslato Februar 28, 2012, 22:25:30 POSLE PODNE
Citat: Novica poslato Februar 28, 2012, 22:24:19 POSLE PODNE
Bilo je nesto kao event i ja to obrisao kao /pokrenicross meni to ne treba i ja to obrisao xD
sigurno nisi lijepo obrisao pa sad nedostaje nesto ili je ostalo od te komande :S
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:28:19 POSLE PODNE
Sad sam sve lepo obrisao ali sad mi pwn nece da compile -.- joj znaci ja sve obrisao i sad kliknem compile kaze pawn stoped working -.- cek

EDIT: Evo posto mi obican pwno neradi usao sam u pwnoX i da compile file kaze error za ovaj deo #include <streamer> tj 11 red i to je jedini error -.-
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:46:26 POSLE PODNE
BUMP PLS HELP !
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Novica poslato Februar 28, 2012, 22:51:01 POSLE PODNE
Zato samo taj 1 izlazi ?? brt nzm koji su sad -.- xD
Naslov: Odg: [Pomoc] Imam par pitanja :)
Poruka od: Blaeks poslato Februar 28, 2012, 23:12:10 POSLE PODNE
Za ovo za glavu stavi kako ti je dao Nxidza pod OnPlayerConnect a ovi errori oznacavaju da skripta nije puna fali { ili }