Pomoc oko aduty

Započeo Maksim0vic, Februar 18, 2018, 20:34:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Detaljan opis problema:Znaci na UP modu sam i zeleo sam /adminduty da promenim u /aduty i da mu bude Svetlo crvena boja na Tabu i dobijam ove errore:
CitatC:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : warning 215: expression has no effect
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : error 001: expected token: ";", but found "-string-"
C:\Usersm\aksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : warning 215: expression has no effect
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : error 001: expected token: ";", but found ")"
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : 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.
Dio skripte:
[pawn]YCMD:aduty(playerid, params[], help)
{
    #pragma unused help
   #pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"[UP:RP] "BELA"Samo Admini!");
   new string[256];
   if(AdminDuty[playerid] == 0)
   {
      format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "SCREVENA"/pitaj "SPLAVA"))",GetName(playerid));
      SCMTA(-1,string);
      AdminDuty[playerid] = 1;
      SetPlayerColor(playerid, SCRVENA);
      SetPlayerArmour(playerid, 99.0);
      g_SetPlayerHealth(playerid, 99.0);
   }
   else if(AdminDuty[playerid] == 1)
   {
      SetPlayerArmour(playerid, 0);
      g_SetPlayerHealth(playerid, 99.0);
      SetPlayerColor(playerid,BELA2);
      format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"vise nije na duznosti "SPLAVA"))",GetName(playerid));
      SCMTA(-1,string);
      AdminDuty[playerid] = 0;
   }
   return 1;
}[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno):


Citat: Stifler ãƒ,, poslato Februar 18, 2018, 20:36:41 POSLE PODNE
koja tacno linija error?

Citatformat(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "SCRVENA"/pitaj "SPLAVA"))",GetName(playerid));

Malo jasniji da budem kada u
SetPlayerColor(playerid, AZUTA); napisem CRVENA dobijam errore

[pawn]format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "CRVENA"/pitaj "SPLAVA"))",GetName(playerid));
      SCMTA(-1,string);
      AdminDuty[playerid] = 1;
      SetPlayerColor(playerid, AZUTA);
      SetPlayerArmour(playerid, 99.0);
      g_SetPlayerHealth(playerid, 99.0);
   }[/pawn]
A to su:
[pawn]C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7766) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[/pawn]

Citat: Maksim0vic poslato Februar 18, 2018, 21:00:04 POSLE PODNE
Malo jasniji da budem kada u
SetPlayerColor(playerid, AZUTA); napisem CRVENA dobijam errore

[pawn]format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "CRVENA"/pitaj "SPLAVA"))",GetName(playerid));
      SCMTA(-1,string);
      AdminDuty[playerid] = 1;
      SetPlayerColor(playerid, AZUTA);
      SetPlayerArmour(playerid, 99.0);
      g_SetPlayerHealth(playerid, 99.0);
   }[/pawn]
A to su:
[pawn]C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7766) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[/pawn]
Daj #define od crvene

Facebook - Klik






// PROBAJ SAD //

YCMD:aduty(playerid, params[], help)
{
    #pragma unused help
#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"[UP:RP] "BELA"Samo Admini!");
new string[256];
if(AdminDuty[playerid] == 0)
{
format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "SCREVENA"/pitaj "SPLAVA"))",GetName(playerid));
SCMTA(-1,string);
AdminDuty[playerid] = 1;
SetPlayerColor(playerid, 0xFF0000FF);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
}
else if(AdminDuty[playerid] == 1)
{
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
SetPlayerColor(playerid,BELA2);
format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"vise nije na duznosti "SPLAVA"))",GetName(playerid));
SCMTA(-1,string);
AdminDuty[playerid] = 0;
}
return 1;
}
Scripter - Ventura Project
Ventura Project IP: 91.134.193.97:7790

Citat: Nacho poslato Februar 18, 2018, 21:19:15 POSLE PODNE


// PROBAJ SAD //

YCMD:aduty(playerid, params[], help)
{
    #pragma unused help
#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"[UP:RP] "BELA"Samo Admini!");
new string[256];
if(AdminDuty[playerid] == 0)
{
format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "SCREVENA"/pitaj "SPLAVA"))",GetName(playerid));
SCMTA(-1,string);
AdminDuty[playerid] = 1;
SetPlayerColor(playerid, 0xFF0000FF);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
}
else if(AdminDuty[playerid] == 1)
{
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
SetPlayerColor(playerid,BELA2);
format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"vise nije na duznosti "SPLAVA"))",GetName(playerid));
SCMTA(-1,string);
AdminDuty[playerid] = 0;
}
return 1;
}


[pawn]C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : warning 215: expression has no effect
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : error 001: expected token: ";", but found "-string-"
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : warning 215: expression has no effect
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : error 001: expected token: ";", but found ")"
C:\Users\maksimovic\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7763) : 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.
[/pawn]

OVDE JE PROBLEM
[pawn]format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "SCRVENA"/pitaj "SPLAVA"))",GetName(playerid));
      SCMTA(-1,string);
      AdminDuty[playerid] = 1;
      SetPlayerColor(playerid, 0xFF0000FF);
      SetPlayerArmour(playerid, 99.0);
      g_SetPlayerHealth(playerid, 99.0);
   }[/pawn]


Inace glup sam oko ovoga pokusavam da ucim da skriptam
Poslednja Izmena: Februar 18, 2018, 21:34:27 POSLE PODNE od Maksim0vic


// BURAZ OVO PROBAJ ZADNJE MORA DA RADI, I DA OVU BOJU STAVI SA OSTALIM KOJI KRECU SA 0x pa tako ( #define COLOR_PURPLE    0xC2A2DAAA )
I ovu boju koji krecu SA {               (  #define ServerBoja      "{1A80D2}" )

YCMD:aduty(playerid, params[], help)
{
    #pragma unused help
#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""SPLAVA"VICE"BELA"CITY:  "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"VICE"BELA"CITY:  "BELA"Samo Admini!");
if(PlayerInfo[playerid][pTrazeniLevel] != 0) return SCM(playerid, -1, ""SPLAVA"VICE"BELA"CITY:  "BELA"Imate trazeni level ne mozete koristiti ovu komandu");
new string[256];
if(AdminDuty[playerid] == 0)
{
    format(string,sizeof(string),""CRVENA"[DUZNOST] "BELA"- "ServerBoja"(( "BELA"Admin %s je na duznost "ServerBoja"))",GetName(playerid));
SendAdminMessage(-1,string);
AdminDuty[playerid] = 1;
SetPlayerColor(playerid, COLOR_PURPLE);
SetPVarInt(playerid, "Izbegavanje", 1);
SetPlayerArmour(playerid, 99.0);
SetPlayerHealth(playerid, 99.0);
SetPlayerSkin(playerid, 294);
}
else if(AdminDuty[playerid] == 1)
{
SetPlayerArmour(playerid, 99.0);
SetPlayerHealth(playerid, 99.0);
format(string,sizeof(string),""CRVENA"[VAN-DUZNOST] "BELA"- "ServerBoja"(( "BELA"Admin %s je van duznost "ServerBoja"))",GetName(playerid));
SendAdminMessage(-1,string);
SetPVarInt(playerid, "Izbegavanje", 0);
SetPlayerColor(playerid, BELA2);
AdminDuty[playerid] = 0;
}
return 1;
}
Scripter - Ventura Project
Ventura Project IP: 91.134.193.97:7790

Citat: Nacho poslato Februar 18, 2018, 21:46:09 POSLE PODNE

// BURAZ OVO PROBAJ ZADNJE MORA DA RADI, I DA OVU BOJU STAVI SA OSTALIM KOJI KRECU SA 0x pa tako ( #define COLOR_PURPLE    0xC2A2DAAA )
I ovu boju koji krecu SA {               (  #define ServerBoja      "{1A80D2}" )

YCMD:aduty(playerid, params[], help)
{
    #pragma unused help
#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""SPLAVA"VICE"BELA"CITY:  "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"VICE"BELA"CITY:  "BELA"Samo Admini!");
if(PlayerInfo[playerid][pTrazeniLevel] != 0) return SCM(playerid, -1, ""SPLAVA"VICE"BELA"CITY:  "BELA"Imate trazeni level ne mozete koristiti ovu komandu");
new string[256];
if(AdminDuty[playerid] == 0)
{
    format(string,sizeof(string),""CRVENA"[DUZNOST] "BELA"- "ServerBoja"(( "BELA"Admin %s je na duznost "ServerBoja"))",GetName(playerid));
SendAdminMessage(-1,string);
AdminDuty[playerid] = 1;
SetPlayerColor(playerid, COLOR_PURPLE);
SetPVarInt(playerid, "Izbegavanje", 1);
SetPlayerArmour(playerid, 99.0);
SetPlayerHealth(playerid, 99.0);
SetPlayerSkin(playerid, 294);
}
else if(AdminDuty[playerid] == 1)
{
SetPlayerArmour(playerid, 99.0);
SetPlayerHealth(playerid, 99.0);
format(string,sizeof(string),""CRVENA"[VAN-DUZNOST] "BELA"- "ServerBoja"(( "BELA"Admin %s je van duznost "ServerBoja"))",GetName(playerid));
SendAdminMessage(-1,string);
SetPVarInt(playerid, "Izbegavanje", 0);
SetPlayerColor(playerid, BELA2);
AdminDuty[playerid] = 0;
}
return 1;
}


RADI ;)