Započeo Obrisan korisnik
•9. Jan. 2012.• Zaključano[Pomoc] Admin Duty i GS Duty
1,736
pregleda
13
postova
9. Jan. 2012.
Skripta koju koristim: CLRP edit
Detaljan opis problema: Kada kucam /aon ili /gson nece da prikaze 3D text label iznad igraca...
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Detaljan opis problema: Kada kucam /aon ili /gson nece da prikaze 3D text label iznad igraca...
Dio skripte:
if(strcmp(cmd, "/aon", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
BroadCast(SVETLOPLAVA, string);
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
playertextid = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/aoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
BroadCast(SVETLOPLAVA, string);
DeletePlayer3DTextLabel(playerid, playertextid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
BroadCast(ZELENKASTA, string);
new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
}
return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
BroadCast(ZELENKASTA, string);
DeletePlayer3DTextLabel(playerid, playertextidgs);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,126
Postovi:
91
Teme:
Pridružio se:Jul 2010
9. Jan. 2012.
Ovo ti je funkcija da prikaciš 3D tekst na igraca kojeg ti želiš:
Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
Text3D:id The 3D Text Label you want to attach.
playerid The player you want to attach the 3D Text Label to.
OffsetX The Offset-X coordinate of the player (the player is 0.0,0.0,0.0).
OffsetY The Offset-Y coordinate of the player (the player is 0.0,0.0,0.0).
OffsetZ The Offset-Z coordinate of the player (the player is 0.0,0.0,0.0).
Primer
Attach3DTextLabelToPlayer(textid, playerid, 0.0, 0.0, 0.0);
Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
Text3D:id The 3D Text Label you want to attach.
playerid The player you want to attach the 3D Text Label to.
OffsetX The Offset-X coordinate of the player (the player is 0.0,0.0,0.0).
OffsetY The Offset-Y coordinate of the player (the player is 0.0,0.0,0.0).
OffsetZ The Offset-Z coordinate of the player (the player is 0.0,0.0,0.0).
Primer
Attach3DTextLabelToPlayer(textid, playerid, 0.0, 0.0, 0.0);
9. Jan. 2012.
Gore umesto new Text3D:playertextidgs; stavis new Text3D:playertextidgs;
I umesto new Text3D:playertextid; stavis new Text3D:playertextid;
Komande:
I umesto new Text3D:playertextid; stavis new Text3D:playertextid;
Komande:
if(strcmp(cmd, "/aon", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
BroadCast(SVETLOPLAVA, string);
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
playertextid = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/aoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
BroadCast(SVETLOPLAVA, string);
Delete3DTextLabel(playertextid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
BroadCast(ZELENKASTA, string);
new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);
Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
}
return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
BroadCast(ZELENKASTA, string);
Delete3DTextLabel(playertextidgs);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
}
return 1;
}10. Jan. 2012.
Imam warninge warning 213: tag mismatch i to ovo ...
to je /aon i /aoff
a ovde imam warningde isto za /gson i /gsoff
pomagajte brzo 🙂
to je /aon i /aoff
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);Delete3DTextLabel(playertextid);a ovde imam warningde isto za /gson i /gsoff
Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);Delete3DTextLabel(playertextidgs);pomagajte brzo 🙂
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
472
Postovi:
2
Teme:
Pridružio se:Nov. 2011
10. Jan. 2012.
imam ove warninge
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38566) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38570) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38571) : warning 202: number of arguments does not match definition
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38573) : warning 217: loose indentation
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38580) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38584) : warning 202: number of arguments does not match definition
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38594) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38598) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38599) : warning 202: number of arguments does not match definition
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38608) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38612) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 15432 bytes
Code size: 3716352 bytes
Data size: 3240152 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4487 cells (17948 bytes)
Total requirements: 6988320 bytes
12 Warnings.10. Jan. 2012.
Lemi_Zero wrote on January 10, 2012, 2:56 pm:
Jesam...
A jel si obrisao new Text3D:playertextidgs; i stavio new text3D:playertextidgs; tako i za ono drugo ?
10. Jan. 2012.
ubacio sam kako si mi rekao ali imam ove warninge...
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38572) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38573) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38591) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38612) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38613) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38631) : warning 213: tag mismatchGodfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
10. Jan. 2012.
Lemi_Zero wrote on January 10, 2012, 5:34 pm:
ubacio sam kako si mi rekao ali imam ove warninge...
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38572) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38573) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38591) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38612) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38613) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38631) : warning 213: tag mismatchdaj sve linije na kojima ti izbacuje..
10. Jan. 2012.
evo linija...
... to su linije kod /aon i /aoff
... a ovo su linije kod /gson i /gsoff
ako me nekontas sta ocu da ti kazem add me na skype milan.nesic2009
... to su linije kod /aon i /aoff
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);Delete3DTextLabel(playertextid);... a ovo su linije kod /gson i /gsoff
Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);Delete3DTextLabel(playertextidgs);ako me nekontas sta ocu da ti kazem add me na skype milan.nesic2009
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
10. Jan. 2012.
a lol daj ove linije iz svoej skripte : 38631 , 38613 , 38612 , 38591 , 38573 , 38572
10. Jan. 2012.
evo linija
linija 38626
linija 38627
linija 38645
linija 38666
linija 38667
linija 38685
eto to su te linije 😉
linija 38626
playertextid = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);linija 38627
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);linija 38645
Delete3DTextLabel(playertextid);linija 38666
playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);linija 38667
Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);linija 38685
Delete3DTextLabel(playertextidgs);eto to su te linije 😉
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava