[HELP]Problem with WantedLevelReduce - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Problem with WantedLevelReduce (
/showthread.php?tid=157180)
[HELP]Problem with WantedLevelReduce -
cofy1 - 05.07.2010
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.
Respuesta: [HELP]Problem with WantedLevelReduce -
cofy1 - 05.07.2010
Please help me!
Re: [HELP]Problem with WantedLevelReduce -
Babul - 06.07.2010
Код:
printf("%s",string);
}
}
}
}
}
}
return 1; // maybe this is missing?
}
Re: [HELP]Problem with WantedLevelReduce -
cofy1 - 06.07.2010
Ohh, then that is missing, although I compile as well, I will try
Re: [HELP]Problem with WantedLevelReduce -
cofy1 - 06.07.2010
Quote:
Originally Posted by Babul
Код:
printf("%s",string);
}
}
}
}
}
}
return 1; // maybe this is missing?
}
|
Still does not work with that: S