[Pomoc] /Duty

Započeo Darko a.k.a OptX, Jul 02, 2011, 19:16:01 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Balkan Street RP EDIT
Detaljan opis problema: Imam problem.Ovde nema duty za FBI,da malo bolje pojasnim...ja sam u fbi,kada idem na /duty pise mi nisi policajac.Znaci u ovoj komandi nema za fbi.Probavao sam iz drugih gamemodova da ubacim,ne uspevam nikako.Kako ovde da dodam da kada sam u fbi da mogu /duty.Joj ne znam bas kako da vam objasnim.Jednostavno u ovoj komandi nema /duty za fbi !Moze mi neko pomoci kako to da uradim ?
Dio skripte:

if(strcmp(cmd, "/duty", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
       {
    format(string, sizeof(string), "* Officer %s je izvadio znacku i oruzje iz svog ormarica.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 24, 70);
JB_GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Officer %s stavlja znacku i oruzje u svog ormaric.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 23, 150);
JB_GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
   if(JobDuty[playerid] == 1)
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
       JobDuty[playerid] = 0;
       Medics -= 1;
   }
   else
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
       JobDuty[playerid] = 1;
       Medics += 1;
   }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
   if(JobDuty[playerid] == 1)
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
       JobDuty[playerid] = 0;
       Mechanics -= 1;
   }
   else
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
       JobDuty[playerid] = 1;
       Mechanics += 1;
   }
}
else
{
   SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)  u

if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == ID_ORG_FBI || PlayerInfo[playerid][pLeader] == ID_ORG_FBI)

Ok to sam dodao i to ovako izgleda :
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2);

Ali mi izbacuje ovo :
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(9129) : warning 204: symbol is assigned a value that is never used: "shealth"
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : warning 215: expression has no effect
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : 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.


Red 19627 je ovo : if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2));
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

dragan12

Ovako dodaj
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2);

if(strcmp(cmd, "/duty", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
        {
    format(string, sizeof(string), "* Officer %s je izvadio znacku i oruzje iz svog ormarica.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 24, 70);
JB_GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Officer %s stavlja znacku i oruzje u svog ormaric.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 23, 150);
JB_GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
        JobDuty[playerid] = 0;
        Medics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
        JobDuty[playerid] = 1;
        Medics += 1;
    }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
        JobDuty[playerid] = 0;
        Mechanics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
        JobDuty[playerid] = 1;
        Mechanics += 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}


Ubaci ovako komandu i probaj da li ce da ti radi.

C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2550) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2575) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2595) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2600) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2664) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2668) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2680) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2684) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2688) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2692) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2696) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2700) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2704) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2716) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2720) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2724) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2728) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2732) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2744) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2748) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2752) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2764) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2768) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3223) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3246) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3259) : error 004: function "SaveCK" is not implemented

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


26 Errors.


OMG !!!
Poslednja Izmena: Jul 02, 2011, 19:47:27 POSLE PODNE od Darko a.k.a OptX
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

Citat: Darko a.k.a OptX poslato Jul 02, 2011, 19:23:50 POSLE PODNE
Ok to sam dodao i to ovako izgleda :
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2);

Ali mi izbacuje ovo :
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(9129) : warning 204: symbol is assigned a value that is never used: "shealth"
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : warning 215: expression has no effect
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(19627) : 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.


Red 19627 je ovo : if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2));

Pogledaj moj kod,a pogledaj svoj! Uopste nisu isti!

dragan12

Citat: Boki Pro poslato Jul 02, 2011, 19:31:42 POSLE PODNE
if(strcmp(cmd, "/duty", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
        {
    format(string, sizeof(string), "* Officer %s je izvadio znacku i oruzje iz svog ormarica.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 24, 70);
JB_GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Officer %s stavlja znacku i oruzje u svog ormaric.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 23, 150);
JB_GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
        JobDuty[playerid] = 0;
        Medics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
        JobDuty[playerid] = 1;
        Medics += 1;
    }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
        JobDuty[playerid] = 0;
        Mechanics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
        JobDuty[playerid] = 1;
        Mechanics += 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}


Ubaci ovako komandu i probaj da li ce da ti radi.

Opet ce mu biti isto ti si otvorio 2 zagrade, a zatvorio 1. Evo kako komanda treba da izgleda
if(strcmp(cmd, "/duty", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2);
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
        {
    format(string, sizeof(string), "* Officer %s je izvadio znacku i oruzje iz svog ormarica.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 24, 70);
JB_GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Officer %s stavlja znacku i oruzje u svog ormaric.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 23, 150);
JB_GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
        JobDuty[playerid] = 0;
        Medics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
        JobDuty[playerid] = 1;
        Medics += 1;
    }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
        JobDuty[playerid] = 0;
        Mechanics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
        JobDuty[playerid] = 1;
        Mechanics += 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}

Citat: [Balcanium]Gagi_Corleone poslato Jul 02, 2011, 19:34:18 POSLE PODNE

Opet ce mu biti isto ti si otvorio 2 zagrade, a zatvorio 1. Evo kako komanda treba da izgleda
if(strcmp(cmd, "/duty", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2);
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
       {
    format(string, sizeof(string), "* Officer %s je izvadio znacku i oruzje iz svog ormarica.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 24, 70);
JB_GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Officer %s stavlja znacku i oruzje u svog ormaric.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 23, 150);
JB_GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
   if(JobDuty[playerid] == 1)
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
       JobDuty[playerid] = 0;
       Medics -= 1;
   }
   else
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
       JobDuty[playerid] = 1;
       Medics += 1;
   }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
   if(JobDuty[playerid] == 1)
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
       JobDuty[playerid] = 0;
       Mechanics -= 1;
   }
   else
   {
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
       JobDuty[playerid] = 1;
       Mechanics += 1;
   }
}
else
{
   SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}


Opet isti errori...
Poslednja Izmena: Jul 02, 2011, 19:38:03 POSLE PODNE od Darko a.k.a OptX
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

if(strcmp(cmd, "/duty", true) == 0 || strcmp(cmd, "/duznost", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,254.4334,190.6243,1008.1718) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(3,playerid,236.9237,111.3875,1003.2187))
{
if(OnDuty[playerid]==0)
        {
            if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
            {
    format(string, sizeof(string), "* Policajac %s je uzeo znacku i pistolj iz ormarica.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
            {
    format(string, sizeof(string), "* Agent %s je uzeo znacku i pistolj iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 70);
SafeGivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
format(string, sizeof(string), "* Policajac %s stavlja znacku i pistolj u svoj ormaric.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
    format(string, sizeof(string), "* Agent %s stavlja znacku i pistolj u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SafeGivePlayerWeapon(playerid, 41, 500);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   Niste u prostoriji sa ormaricima !");
return 1;
}
}


Probaj ovako

Opet isti errori...hmm...A kada stavim default koji se nalazi gore u prvom postu onda sve radi kako treba,ni 1 error...
Hvala vam svima ali koliko vidim ovde nema resenja?Preostaje mi da trazim drugi gamemode :(
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

dragan12

Citat: Darko a.k.a OptX poslato Jul 02, 2011, 19:42:55 POSLE PODNE
Opet isti errori...hmm...A kada stavim default koji se nalazi gore u prvom postu onda sve radi kako treba,ni 1 error...
Hvala vam svima ali koliko vidim ovde nema resenja?Preostaje mi da trazim drugi gamemode :(
Aj probaj ovako ja sam testirao nema error-a prosli put sam stavio ; pisao sam ko robot :D bila je moja greska
if(strcmp(cmdtext, "/duty", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
        {
    format(string, sizeof(string), "* Officer %s je izvadio znacku i oruzje iz svog ormarica.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 24, 70);
JB_GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Officer %s stavlja znacku i oruzje u svog ormaric.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 23, 150);
JB_GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
        JobDuty[playerid] = 0;
        Medics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
        JobDuty[playerid] = 1;
        Medics += 1;
    }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
        JobDuty[playerid] = 0;
        Mechanics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
        JobDuty[playerid] = 1;
        Mechanics += 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}

Citat: Darko a.k.a OptX poslato Jul 02, 2011, 19:33:38 POSLE PODNE
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2550) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2575) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2595) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2600) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2664) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2668) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2680) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2684) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2688) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2692) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2696) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2700) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2704) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2716) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2720) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2724) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2728) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2732) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2744) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2748) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2752) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2764) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2768) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3223) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3246) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3259) : error 004: function "SaveCK" is not implemented

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


26 Errors.


OMG !!!

Dzaba...isto kao ovo u citatu :(  :'( :'(
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

dragan12

Citat: Darko a.k.a OptX poslato Jul 02, 2011, 19:47:53 POSLE PODNE
Citat: Darko a.k.a OptX poslato Jul 02, 2011, 19:33:38 POSLE PODNE
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2550) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2575) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2595) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2600) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2664) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2668) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2680) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2684) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2688) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2692) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2696) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2700) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2704) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2716) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2720) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2724) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2728) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2732) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2744) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2748) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2752) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2764) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2768) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3223) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3246) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3259) : error 004: function "SaveCK" is not implemented

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


26 Errors.


OMG !!!

Dzaba...isto kao ovo u citatu :(  :'( :'(
Tu je do zagrada sto znaci da su ti negde drugde te zagrade. Proveri sta si pre ovog radio. Ja ubacim komandu nema problema. Proveri to sto si pre toga radio broj { i broj } zagrada treba da bude isti

Citat: Darko a.k.a OptX poslato Jul 02, 2011, 19:47:53 POSLE PODNE
Citat: Darko a.k.a OptX poslato Jul 02, 2011, 19:33:38 POSLE PODNE
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2550) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2575) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2595) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2600) : error 004: function "SetPlayerCriminal" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2664) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2668) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2680) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2684) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2688) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2692) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2696) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2700) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2704) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2716) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2720) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2724) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2728) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2732) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2744) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2748) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2752) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2764) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(2768) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3223) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3246) : error 004: function "SendIRCMessage" is not implemented
C:\DOCUME~1\Darko\Desktop\Black Street Rolelpay\gamemodes\lvdm.pwn(3259) : error 004: function "SaveCK" is not implemented

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


26 Errors.


OMG !!!

Dzaba...isto kao ovo u citatu :(  :'( :'(
daj id FBI-a :D da ti sredi bata :D