Eror with SetPlayerChatBubble -
Aske - 04.08.2014
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;
}
Respuesta: Eror with SetPlayerChatBubble -
Cepillado - 04.08.2014
How did you define the color "ZELENA"?, remember that it has to be an hexadecimal color as in "0x00000000"
Re: Eror with SetPlayerChatBubble -
jackx3rx - 04.08.2014
Which line has the error?
Re: Eror with SetPlayerChatBubble -
Aske - 05.08.2014
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,
};
Re: Eror with SetPlayerChatBubble -
dirigent00 - 05.08.2014
Balkan edits... OT: Znam kako ti je.
Make new Text3D
![Cheesy](images/smilies/biggrin.png)
uty[MAX_PLAYERS];
On this command, simple create 3D text and attach it on player. That's all.