Skripta koju koristim: Moja od 0
Detaljan opis problema: Ovako ubacivao sam komandu gethere sa UP-a i imam problem evo ga C:\Documents and Settings\RakeMaster\Desktop\1. [BS] Balkan Side RolePlay\gamemodes\BS.pwn(758) : error 017: undefined symbol "X"
C:\Documents and Settings\RakeMaster\Desktop\1. [BS] Balkan Side RolePlay\gamemodes\BS.pwn(759) : error 017: undefined symbol "X"
C:\Documents and Settings\RakeMaster\Desktop\1. [BS] Balkan Side RolePlay\gamemodes\BS.pwn(826) : error 017: undefined symbol "X"
C:\Documents and Settings\RakeMaster\Desktop\1. [BS] Balkan Side RolePlay\gamemodes\BS.pwn(831) : error 017: undefined symbol "X"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Dio skripte: YCMD:gethere(playerid, params[], help) //746 linija
{
#pragma unused help
if(LoginProvjera[playerid] == 0) return SCM(playerid,-1,"(greska!) "PLAVA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new gtIgrac;
new string[256];
if(ADuty[playerid] == 00) return SCM(playerid,-1,""PLAVA"(greska!) "BELA"Morate biti na Admin & GameMaster duznosti!");
if(sscanf(params, "u", gtIgrac)) return SCM(playerid, -1, ""PLAVA"Pomoc| "BELA"/gethere [ID/Ime]");
if(!IsPlayerConnected(gtIgrac)) return SCM(playerid, -1, "(greska!) "PLAVA"Taj igrac nije na serveru!");
if(PlayerInfo[gtIgrac][pAdmin] > PlayerInfo[playerid][pAdmin]) return SCM(playerid,-1,"(greska!) "PLAVA"Ne mozete portati igraca koji je jaci od vas!");
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(gtIgrac, X + 2.0, Y, Z);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Teleportovao si %s-a do sebe!",GetName(gtIgrac));
SCM(playerid,-1,string);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Admin %s te teleportovao do sebe!",GetName(playerid));
SCM(gtIgrac,-1,string);
}
else
{
SCM(playerid, -1, ""PLAVA"(greska!) "BELA"Nemate autorizaciju za ovu komandu!");
}
return 1;
}
Neke slike za lakse snalazenje: //
YCMD:gethere(playerid, params[], help) //746 linija
{
#pragma unused help
if(LoginProvjera[playerid] == 0) return SCM(playerid,-1,"(greska!) "PLAVA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new gtIgrac;
new string[256];
new Float:X, Float:Y, Float:Z;
if(ADuty[playerid] == 00) return SCM(playerid,-1,""PLAVA"(greska!) "BELA"Morate biti na Admin & GameMaster duznosti!");
if(sscanf(params, "u", gtIgrac)) return SCM(playerid, -1, ""PLAVA"Pomoc| "BELA"/gethere [ID/Ime]");
if(!IsPlayerConnected(gtIgrac)) return SCM(playerid, -1, "(greska!) "PLAVA"Taj igrac nije na serveru!");
if(PlayerInfo[gtIgrac][pAdmin] > PlayerInfo[playerid][pAdmin]) return SCM(playerid,-1,"(greska!) "PLAVA"Ne mozete portati igraca koji je jaci od vas!");
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(gtIgrac, X + 2.0, Y, Z);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Teleportovao si %s-a do sebe!",GetName(gtIgrac));
SCM(playerid,-1,string);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Admin %s te teleportovao do sebe!",GetName(playerid));
SCM(gtIgrac,-1,string);
}
else
{
SCM(playerid, -1, ""PLAVA"(greska!) "BELA"Nemate autorizaciju za ovu komandu!");
}
return 1;
}
Stavi tako
Hvala ovo radi a moze li se za ovo ista /*YCMD:slap(playerid, params[],help)
{
#pragma unused help
if(LoginProvjera[playerid] == 0) return SCM(playerid,-1,"(greska!) "PLAVA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new sIgrac,razlog[48];
new Float:health,string[256];
if(ADuty[playerid] == 0) return SCM(playerid,-1,""PLAVA"(greska!) "BELA"Morate biti na Admin duznosti!");
if(sscanf(params, "us[48]", sIgrac,razlog)) return SCM(playerid, -1, ""PLAVA"Pomoc| "BELA"/slap [ID/Ime] [Razlog]");
if(!IsPlayerConnected(sIgrac)) return SCM(playerid, -1,""PLAVA"(greska!) "BELA"Pogresan ID!");
GetPlayerPos(sIgrac, X, Y, Z);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Admin %s vas je osamario "PLAVA"Razlog: %s!",GetName(playerid),razlog);
SCM(sIgrac,-1,string);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Osamarili ste %s-a "PLAVA"Razlog: %s!",GetName(sIgrac),razlog);
SCM(playerid,-1,string);
SetPlayerPos(sIgrac, X, Y, Z + 5.0);
GetPlayerHealth(sIgrac,health);
d_SetPlayerHealth(sIgrac,health-10);
}
else
{
SCM(playerid, -1, ""PLAVA"(greska!) "BELA"Nemate autorizaciju za ovu komandu!");
}
return 1;
}*/
/*YCMD:slap(playerid, params[],help)
{
#pragma unused help
if(LoginProvjera[playerid] == 0) return SCM(playerid,-1,"(greska!) "PLAVA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new sIgrac,razlog[48];
new Float:health,string[256];
new Float:X, Float:Y, Float:Z;
if(ADuty[playerid] == 0) return SCM(playerid,-1,""PLAVA"(greska!) "BELA"Morate biti na Admin duznosti!");
if(sscanf(params, "us[48]", sIgrac,razlog)) return SCM(playerid, -1, ""PLAVA"Pomoc| "BELA"/slap [ID/Ime] [Razlog]");
if(!IsPlayerConnected(sIgrac)) return SCM(playerid, -1,""PLAVA"(greska!) "BELA"Pogresan ID!");
GetPlayerPos(sIgrac, X, Y, Z);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Admin %s vas je osamario "PLAVA"Razlog: %s!",GetName(playerid),razlog);
SCM(sIgrac,-1,string);
format(string,sizeof(string),""PLAVA"AGM| "BELA"Osamarili ste %s-a "PLAVA"Razlog: %s!",GetName(sIgrac),razlog);
SCM(playerid,-1,string);
SetPlayerPos(sIgrac, X, Y, Z + 5.0);
GetPlayerHealth(sIgrac,health);
d_SetPlayerHealth(sIgrac,health-10);
}
else
{
SCM(playerid, -1, ""PLAVA"(greska!) "BELA"Nemate autorizaciju za ovu komandu!");
}
return 1;
}*/
E hvala, moze LOCK