[HELP]Problem with WantedLevelReduce
#1

I have an a GM with Cops and Robbers, I too have an system to reduce level, but dont fuction. This are the lines:

Quote:

public WantedLevelReduce()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsSpawned[i] == 1)
{
if(commitedcrimerecently[i] == 0)
{
if(GetPlayerWantedLevel(i) >= 1 && GetPlayerWantedLevel(i) <= 6)
{
if(copshavevc[i] == 0)
{
new plwl = GetPlayerWantedLevel(i);
SetPlayerWantedLevel(i,plwl -1);
new criminal[30];
new string[100];
plwl = GetPlayerWantedLevel(i);
new pcol = GetPlayerColor(i);
GetPlayerName(i,criminal,30);
SendClientMessage(i, 0xA9A9A9AA, "|_Wanted Level Reduced_|");
SendClientMessage(i, pcol, "Your wanted level has been reduced due to a lack of police interest");
format(string, sizeof(string), "Reduced Wanted Level: %d",plwl);
SendClientMessage(i, pcol, string);
format(string, sizeof(string), "**(Reduced Wanted Level)** %s(%d) New Wanted Level: %d",criminal,i,plwl);
printf("%s",string);
}
}
}
}
}
}
}

If in any are wrong, please help me.
Reply
#2

Please help me!
Reply
#3

Код:
printf("%s",string);
}
}
}
}
}
}
return 1; // maybe this is missing?
}
Reply
#4

Ohh, then that is missing, although I compile as well, I will try
Reply
#5

Quote:
Originally Posted by Babul
Посмотреть сообщение
Код:
printf("%s",string);
}
}
}
}
}
}
return 1; // maybe this is missing?
}
Still does not work with that: S
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)