Jump to content
  • 0

FS mask!


Guest Cio-Rap

Question

5 answers to this question

Recommended Posts

Ca sa se vada numele:

	if(strcmp(cmdtext, "/nametagson", true)==0)
	{
   	   	SendClientMessage(playerid, COLOR_BASIC, "Vederea numelui este activata.");
    	        PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0);
		for(new i = 0; i < MAX_PLAYERS; i ++)
		{
	    	ShowPlayerNameTagForPlayer(playerid, i, 1);
		}
		return 1;
	}
Ca sa nu se vada numele:
if(strcmp(cmdtext, "/nametagsoff", true)==0)
	{
		SendClientMessage(playerid, COLOR_BASIC, "Vederea numelui este dezactivata.");
    	        PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
		for(new i = 0; i < MAX_PLAYERS; i ++)
		{
	    	ShowPlayerNameTagForPlayer(playerid, i, 0);
		}
		return 1;
	}
  Astea 2 le pui asa:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/nametagson", true)==0)
	{
   	   	SendClientMessage(playerid, COLOR_BASIC, "Vederea numelui este activata.");
    	        PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0);
		for(new i = 0; i < MAX_PLAYERS; i ++)
		{
	    	ShowPlayerNameTagForPlayer(playerid, i, 1);
		}
		return 1;
	}
        if(strcmp(cmdtext, "/nametagsoff", true)==0)
	{
		SendClientMessage(playerid, COLOR_BASIC, "Vederea numelui este dezactivata.");
    	        PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
		for(new i = 0; i < MAX_PLAYERS; i ++)
		{
	    	ShowPlayerNameTagForPlayer(playerid, i, 0);
		}
		return 1;
	}
//alte chestii din GM
        return 1;
}

;D...sper ca ti-a fost de folos :)

Link to comment
Share on other sites

Guest Cio-Rap

imi da eroare :(

D:\se\filterscripts\nametag.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
D:\se\filterscripts\nametag.pwn(3) : error 017: undefined symbol "strcmp"
D:\se\filterscripts\nametag.pwn(5) : error 017: undefined symbol "SendClientMessage"
D:\se\filterscripts\nametag.pwn(6) : error 017: undefined symbol "PlayerPlaySound"
D:\se\filterscripts\nametag.pwn(7) : error 017: undefined symbol "MAX_PLAYERS"
D:\se\filterscripts\nametag.pwn(9) : error 017: undefined symbol "ShowPlayerNameTagForPlayer"
D:\se\filterscripts\nametag.pwn(13) : error 017: undefined symbol "strcmp"
D:\se\filterscripts\nametag.pwn(15) : error 017: undefined symbol "SendClientMessage"
D:\se\filterscripts\nametag.pwn(16) : error 017: undefined symbol "PlayerPlaySound"
D:\se\filterscripts\nametag.pwn(17) : error 017: undefined symbol "MAX_PLAYERS"
D:\se\filterscripts\nametag.pwn(19) : error 017: undefined symbol "ShowPlayerNameTagForPlayer"
D:\se\filterscripts\nametag.pwn(26) : error 030: compound statement not closed at the end of file (started at line 3)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.

Link to comment
Share on other sites

imi da eroare :(

D:\se\filterscripts\nametag.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
D:\se\filterscripts\nametag.pwn(3) : error 017: undefined symbol "strcmp"
D:\se\filterscripts\nametag.pwn(5) : error 017: undefined symbol "SendClientMessage"
D:\se\filterscripts\nametag.pwn(6) : error 017: undefined symbol "PlayerPlaySound"
D:\se\filterscripts\nametag.pwn(7) : error 017: undefined symbol "MAX_PLAYERS"
D:\se\filterscripts\nametag.pwn(9) : error 017: undefined symbol "ShowPlayerNameTagForPlayer"
D:\se\filterscripts\nametag.pwn(13) : error 017: undefined symbol "strcmp"
D:\se\filterscripts\nametag.pwn(15) : error 017: undefined symbol "SendClientMessage"
D:\se\filterscripts\nametag.pwn(16) : error 017: undefined symbol "PlayerPlaySound"
D:\se\filterscripts\nametag.pwn(17) : error 017: undefined symbol "MAX_PLAYERS"
D:\se\filterscripts\nametag.pwn(19) : error 017: undefined symbol "ShowPlayerNameTagForPlayer"
D:\se\filterscripts\nametag.pwn(26) : error 030: compound statement not closed at the end of file (started at line 3)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.
am gasit ce are, tu le-ai pus primele in script si comenzile trebuie sa fie sub OnPlayerCommandText al tau, nu il adaugi din nou :P....cauta (CTRL + F) OnPlayerCommandText si pui comenzile sub
public OnPlayerCommandText();
{
si sub asta pui comenzile 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.