02.05.2014, 07:40
Como nessa SS:
Queria fazer isso aн pra qnd um membro da policia civil desse /distintivo eu tentei assim:
Erros:
Codigo:
Queria fazer isso aн pra qnd um membro da policia civil desse /distintivo eu tentei assim:
Erros:
pawn Код:
playertextid = CreatePlayer3DTextLabel(playerid,"Policia Civil",COLOR_BLUE,X,Y,Z,40.0); // warning 204: symbol is assigned a value that is never used: "playertextid"
pawn Код:
Delete3DTextLabel(playertextid); // warning 213: tag mismatch
pawn Код:
if(strcmp(cmd, "/distintivo", true) == 0)
{
if(PlayerInfo[playerid][pLider] != 16 && PlayerInfo[playerid][pMembro] != 16) return SendClientMessage(playerid, COLOR_RED, "Vocк nгo й um Policial Civil.");
if(distintivo[playerid] == 0) {
distintivo[playerid] = 1;
new PlayerText3D:playertextid;
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z );
playertextid = CreatePlayer3DTextLabel(playerid,"Policia Civil",COLOR_BLUE,X,Y,Z,40.0); // warning 204: symbol is assigned a value that is never used: "playertextid"
format(string, sizeof(string), "O policial civil %s colocou seu distintivo a mostra.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(distintivo[playerid] == 1) {
distintivo[playerid] = 0;
new PlayerText3D:playertextid;
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z );
playertextid = CreatePlayer3DTextLabel(playerid,"Policia Civil",COLOR_BLUE,X,Y,Z,40.0);
Delete3DTextLabel(playertextid); // warning 213: tag mismatch
format(string, sizeof(string), "O policial civil %s guardou seu distintivo.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
}