Eror with SetPlayerChatBubble
#1

I have error 035: argument type mismatch (argument 3)
Can somebodey fix this here a script




Код:
YCMD:aduty(playerid, params[], help)
{
    #pragma unused help
	#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"FL:RP | "PLAVA"Moras se ulogovati da bi koristio ovu komandu!");
	if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""PLAVA"FLRP © "BELA"Samo Admini!");
	new string[256];
	if(AdminDuty[playerid] == 0)
	{
	    format(string,sizeof(string),""ZELENA"(( "BELA"Administrator "ZELENA"%s "BELA"je na duznosti,za pomoc kucajte "ZUTA"/askq "ZELENA"))",GetName(playerid));
		SCMTA(-1,string);
		if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 188); }
	    if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 192); }
		AdminDuty[playerid] = 1;
		SetPlayerColor(playerid, 0xFF0000FF);
		SetPlayerArmour(playerid, 99.0);
		g_SetPlayerHealth(playerid, 99.0);
		SetPlayerChatBubble(playerid, "[ ADMIN] ", ZELENA, 100.0, 10000);// Here is error
	}
	else if(AdminDuty[playerid] == 1)
	{
		SetPlayerArmour(playerid, 0);
		g_SetPlayerHealth(playerid, 99.0);
		format(string,sizeof(string),""ZELENA"(( "BELA"Administrator "ZELENA"%s "BELA"vise nije na duznosti "ZELENA"))",GetName(playerid));
		SCMTA(-1,string);
		if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pSkin] = 240; }
	    if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); PlayerInfo[playerid][pSkin] = 93; }
		SetPlayerColor(playerid, BELA2);
		AdminDuty[playerid] = 0;
	}
	return 1;
}
Reply
#2

How did you define the color "ZELENA"?, remember that it has to be an hexadecimal color as in "0x00000000"
Reply
#3

Which line has the error?
Reply
#4

Cepillado thank you but now i have error 001: expected token: ";", but found "enum"

Here line
Код:
enum Kuce
{
	kProveraVlasnika,
	kVlasnik[MAX_PLAYER_NAME],
	kVrsta[35],
	Float:kUlazX,
	Float:kUlazY,
	Float:kUlazZ,
	Float:kIzlazX,
	Float:kIzlazY,
	Float:kIzlazZ,
	kLevel,
	kCena,
    kNovac,
	kInt,
	kZatvoreno,
	kVW,
	kOruzije,
	kMunicija,
	kRent,
	kCenaRenta,
	kZvono,
	kFrizder,
	kMats,
	kDroga,
	kOdjeca,
	kVrstaIntKuce,
	kHrana,
};
Reply
#5

Balkan edits... OT: Znam kako ti je.

Make new Text3Duty[MAX_PLAYERS];

On this command, simple create 3D text and attach it on player. That's all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)