[POMOC]/aon /aoff , /gson /gsoff

Započeo d1n0, Decembar 28, 2012, 15:48:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:BDRP ( Edit CSRPa)
Detaljan opis problema:Dodao sam kada kuca /aon i /gson da dobije boju plavu i narandzastu i da mu na glavi pise da je na duznosti , ali kad kuca /gsoff i /aoff njemu ostaje plava boja i na glavi pise da je na duznosti kako to da sredim
Dio skripte:
if(strcmp(cmd, "/aon", true) == 0)
   	{
   		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
  			SetPlayerArmour(playerid, 1000.0);
			SetPlayerHealth(playerid, 1000.0);
			SetPlayerColor(playerid, SVETLOPLAVA);
       		GetPlayerName(playerid, sendername, sizeof(sendername));
       		format(string, sizeof(string), ""COL_SVPLAVA "|{FFFFFF}Admin"COL_SVPLAVA"| {FFFFFF}%s"COL_SVPLAVA"je sada na duznosti",sendername);
       		ABroadCast(COLOR_ORANGE,string,1);
    		new Float:fa, Float:fy, Float:fu;
			GetPlayerPos( playerid, fa, fy, fu );
    	  SetPlayerChatBubble(playerid, "BD GameSaga na duznosti |NE OMETAJ|", COLOR_BLUE, 50.0, 99999999999);
			return 1;
		}
   		else
   		{
    			SendClientMessage(playerid, WHITE, "Niste ovlasteni da koristite ovu komandu!");
   		}
   		return 1;
  	}
   // -  -  - -  - -  admin off duty
 	if(strcmp(cmd, "/aoff", true) == 0)
 	{
   		if (PlayerInfo[playerid][pAdmin] >= 1)
   		{
			SetPlayerArmour(playerid, 0.0);
			SetPlayerHealth(playerid, 100.0);
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), ""COL_SVPLAVA "|{FFFFFF}Admin"COL_SVPLAVA "| {FFFFFF}%s "COL_SVPLAVA "vise nije na duznosti!",sendername);
			ABroadCast(COLOR_ORANGE,string,1);
  			DeletePlayer3DTextLabel(playerid, playerid);
			SetPlayerChatBubble(playerid, "", COLOR_LIGHTBLUE, 50.0, 99999999999);
			return 1;
   		}
   		else
   		{
    			SendClientMessage(playerid, WHITE, "Niste ovlasteni da koristite ovu komandu!");
   		}
		return 1;
 	}
//-------------------------[gamesage on duty]-------------------------------------------------
    if (strcmp(cmd, "/gson", true) == 0)
    {
        SetPVarInt(playerid, "Izbegavanje", 1);
        if(PlayerInfo[playerid][pGameSage] >= 1)
        {
           SetPlayerArmour(playerid, 100);
           if(PlayerInfo[playerid][pGameSage] >= 1)
           SetPlayerColor(playerid,COLOR_ORANGE)
           SetPlayerChatBubble(playerid, "BD GameSaga na duznosti |NE OMETAJ|", COLOR_ORANGE, 50.0, 99999999999);
           SetPlayerHealth(playerid, 100);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "{FFAF00}|{FFFFFF}GameSaga{FFAF00}|{FFFFFF}%s {FFFFFF}je sada na duznosti.", sendername);
           Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.5);
           SendPomocMessage(COLOR_GREEN,string);
   	       }
           return 1;
   	       }
//-------------------------[gamesage off duty]-------------------------------------------------
    if (strcmp(cmd, "/gsoff", true)==0)
    {
        SetPVarInt(playerid, "Izbegavanje", 0);
        if(PlayerInfo[playerid][pGameSage] >= 1)
        {
	    	SetPlayerArmour(playerid, 0);
	    	Delete3DTextLabel(label[playerid]);
	    	SetPlayerHealth(playerid, 100);
	    	GetPlayerName(playerid, sendername, sizeof(sendername));
	    	format(string, sizeof(string), "{FFAF00}|{FFFFFF}GameSaga{FFAF00}|{FFFFFF}%s {FFAF00}vise nije na duznosti.", playerid, sendername);
	    	SendClientMessage(playerid, COLOR_YELLOW,string);
    	}
        return 1;
	    }

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Edit : i da ne otvaram novu temu kada kuca /gson izadje mu na glavi da je kuca na prodaju :S
Evo slike http://zaslike.com/files/4xf9c75wczgdtdx3m1z.png
Poslednja Izmena: Decembar 28, 2012, 15:51:35 POSLE PODNE od |BD|Dino

znam to se i meni desavalo da igracu pise iznad glave da je kuca na prodaju to moras da provjeris da ti se taj textdraw ne mjesa sa Id od igraca

evo probaj ovako
if(strcmp(cmd, "/aon", true) == 0)
   	{
   		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
  			SetPlayerArmour(playerid, 1000.0);
			SetPlayerHealth(playerid, 1000.0);
			SetPlayerColor(playerid, SVETLOPLAVA);
       		GetPlayerName(playerid, sendername, sizeof(sendername));
       		format(string, sizeof(string), ""COL_SVPLAVA "|{FFFFFF}Admin"COL_SVPLAVA"| {FFFFFF}%s"COL_SVPLAVA"je sada na duznosti",sendername);
       		ABroadCast(COLOR_ORANGE,string,1);
    		new Float:fa, Float:fy, Float:fu;
			GetPlayerPos( playerid, fa, fy, fu );
    	  SetPlayerChatBubble(playerid, "BD GameSaga na duznosti |NE OMETAJ|", COLOR_BLUE, 50.0, 99999999999);
			return 1;
		}
   		else
   		{
    			SendClientMessage(playerid, WHITE, "Niste ovlasteni da koristite ovu komandu!");
   		}
   		return 1;
  	}
   // -  -  - -  - -  admin off duty
 	if(strcmp(cmd, "/aoff", true) == 0)
 	{
   		if (PlayerInfo[playerid][pAdmin] >= 1)
   		{
			SetPlayerArmour(playerid, 0.0);
			SetPlayerHealth(playerid, 100.0);
			SetPlayerColor(playerid, COLOR_WHITE);
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), ""COL_SVPLAVA "|{FFFFFF}Admin"COL_SVPLAVA "| {FFFFFF}%s "COL_SVPLAVA "vise nije na duznosti!",sendername);
			ABroadCast(COLOR_ORANGE,string,1);
  			DeletePlayer3DTextLabel(playerid, playerid);
			SetPlayerChatBubble(playerid, " ", COLOR_WHITE, 50.0, 99999999999);
			return 1;
   		}
   		else
   		{
    			SendClientMessage(playerid, WHITE, "Niste ovlasteni da koristite ovu komandu!");
   		}
		return 1;
 	}
//-------------------------[gamesage on duty]-------------------------------------------------
    if (strcmp(cmd, "/gson", true) == 0)
    {
        SetPVarInt(playerid, "Izbegavanje", 1);
        if(PlayerInfo[playerid][pGameSage] >= 1)
        {
           SetPlayerArmour(playerid, 100);
           if(PlayerInfo[playerid][pGameSage] >= 1)
           SetPlayerColor(playerid,COLOR_ORANGE)
           SetPlayerChatBubble(playerid, "BD GameSaga na duznosti |NE OMETAJ|", COLOR_ORANGE, 50.0, 99999999999);
           SetPlayerHealth(playerid, 100);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "{FFAF00}|{FFFFFF}GameSaga{FFAF00}|{FFFFFF}%s {FFFFFF}je sada na duznosti.", sendername);
           Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.5);
           SendPomocMessage(COLOR_GREEN,string);
   	       }
           return 1;
   	       }
//-------------------------[gamesage off duty]-------------------------------------------------
    if (strcmp(cmd, "/gsoff", true)==0)
    {
        SetPVarInt(playerid, "Izbegavanje", 0);
        if(PlayerInfo[playerid][pGameSage] >= 1)
        {
	    	SetPlayerArmour(playerid, 0);
	    	SetPlayerColor(playerid, COLOR_WHITE);
	    	SetPlayerChatBubble(playerid, " ", COLOR_WHITE, 50.0, 99999999999);
	    	Delete3DTextLabel(label[playerid]);
	    	SetPlayerHealth(playerid, 100);
	    	GetPlayerName(playerid, sendername, sizeof(sendername));
	    	format(string, sizeof(string), "{FFAF00}|{FFFFFF}GameSaga{FFAF00}|{FFFFFF}%s {FFAF00}vise nije na duznosti.", playerid, sendername);
	    	SendClientMessage(playerid, COLOR_YELLOW,string);
    	}
        return 1;
	    }

Citat: ...Nikola... poslato Decembar 28, 2012, 17:03:43 POSLE PODNE
evo probaj ovako
if(strcmp(cmd, "/aon", true) == 0)
   	{
   		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
  			SetPlayerArmour(playerid, 1000.0);
			SetPlayerHealth(playerid, 1000.0);
			SetPlayerColor(playerid, SVETLOPLAVA);
       		GetPlayerName(playerid, sendername, sizeof(sendername));
       		format(string, sizeof(string), ""COL_SVPLAVA "|{FFFFFF}Admin"COL_SVPLAVA"| {FFFFFF}%s"COL_SVPLAVA"je sada na duznosti",sendername);
       		ABroadCast(COLOR_ORANGE,string,1);
    		new Float:fa, Float:fy, Float:fu;
			GetPlayerPos( playerid, fa, fy, fu );
    	  SetPlayerChatBubble(playerid, "BD GameSaga na duznosti |NE OMETAJ|", COLOR_BLUE, 50.0, 99999999999);
			return 1;
		}
   		else
   		{
    			SendClientMessage(playerid, WHITE, "Niste ovlasteni da koristite ovu komandu!");
   		}
   		return 1;
  	}
   // -  -  - -  - -  admin off duty
 	if(strcmp(cmd, "/aoff", true) == 0)
 	{
   		if (PlayerInfo[playerid][pAdmin] >= 1)
   		{
			SetPlayerArmour(playerid, 0.0);
			SetPlayerHealth(playerid, 100.0);
			SetPlayerColor(playerid, COLOR_WHITE);
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), ""COL_SVPLAVA "|{FFFFFF}Admin"COL_SVPLAVA "| {FFFFFF}%s "COL_SVPLAVA "vise nije na duznosti!",sendername);
			ABroadCast(COLOR_ORANGE,string,1);
  			DeletePlayer3DTextLabel(playerid, playerid);
			SetPlayerChatBubble(playerid, " ", COLOR_WHITE, 50.0, 99999999999);
			return 1;
   		}
   		else
   		{
    			SendClientMessage(playerid, WHITE, "Niste ovlasteni da koristite ovu komandu!");
   		}
		return 1;
 	}
//-------------------------[gamesage on duty]-------------------------------------------------
    if (strcmp(cmd, "/gson", true) == 0)
    {
        SetPVarInt(playerid, "Izbegavanje", 1);
        if(PlayerInfo[playerid][pGameSage] >= 1)
        {
           SetPlayerArmour(playerid, 100);
           if(PlayerInfo[playerid][pGameSage] >= 1)
           SetPlayerColor(playerid,COLOR_ORANGE)
           SetPlayerChatBubble(playerid, "BD GameSaga na duznosti |NE OMETAJ|", COLOR_ORANGE, 50.0, 99999999999);
           SetPlayerHealth(playerid, 100);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "{FFAF00}|{FFFFFF}GameSaga{FFAF00}|{FFFFFF}%s {FFFFFF}je sada na duznosti.", sendername);
           Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.5);
           SendPomocMessage(COLOR_GREEN,string);
   	       }
           return 1;
   	       }
//-------------------------[gamesage off duty]-------------------------------------------------
    if (strcmp(cmd, "/gsoff", true)==0)
    {
        SetPVarInt(playerid, "Izbegavanje", 0);
        if(PlayerInfo[playerid][pGameSage] >= 1)
        {
	    	SetPlayerArmour(playerid, 0);
	    	SetPlayerColor(playerid, COLOR_WHITE);
	    	SetPlayerChatBubble(playerid, " ", COLOR_WHITE, 50.0, 99999999999);
	    	Delete3DTextLabel(label[playerid]);
	    	SetPlayerHealth(playerid, 100);
	    	GetPlayerName(playerid, sendername, sizeof(sendername));
	    	format(string, sizeof(string), "{FFAF00}|{FFFFFF}GameSaga{FFAF00}|{FFFFFF}%s {FFAF00}vise nije na duznosti.", playerid, sendername);
	    	SendClientMessage(playerid, COLOR_YELLOW,string);
    	}
        return 1;
	    }


Ovaj eror mi izbaci -
C:\Users\BD_Dino\Desktop\bd novi\bdrp\gamemodes\BDRPG.pwn(40866) : error 035: argument type mismatch (argument 3)

Linija -
        SetPlayerChatBubble(playerid, "BD Admin na duznosti |NE OMETAJ|", COL_SVPLAVA, 50.0, 99999999999);