Was wird so geprintet?
public CreateWantedLabel(playerid,copid)
{
if(IsPlayerConnected(playerid))
{
new playername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, playername, sizeof(playername));
if(Maske[playerid] == 0)
{
format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
DeletePlayer3DTextLabel(copid, WantedLabel[playerid][copid]);
print("1");
printf("%i %i %i",copid,playerid,_:WantedLabel[playerid][copid]);
WantedPlayerLabel[playerid][copid] = CreatePlayer3DTextLabel(copid, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID,1);
printf("%i %i %i",copid,playerid,_:WantedLabel[playerid][copid]);
if(PlayerInfo[playerid][pWantedLevel] == 0)
{
DeletePlayer3DTextLabel(copid, WantedLabel[playerid][copid]);
print("3");
printf("%i %i %i",copid,playerid,_:WantedLabel[playerid][copid]);
WantedLabel[playerid][copid] = PlayerText3D:INVALID_3DTEXT_ID;
}
}
else if(Maske[playerid] == 1)
{
DeletePlayer3DTextLabel(copid, WantedLabel[playerid][copid]);
print("4");
printf("%i %i %i",copid,playerid,_:WantedLabel[playerid][copid]);
WantedLabel[playerid][copid] = PlayerText3D:INVALID_3DTEXT_ID;
}
}
return 1;
}
Alles anzeigen