Error with GetPlayerWantedLevel + SetPlayerWantedLevel - 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)
+--- Thread: Error with GetPlayerWantedLevel + SetPlayerWantedLevel (
/showthread.php?tid=420138)
Error with GetPlayerWantedLevel + SetPlayerWantedLevel -
FunnyBear - 03.03.2013
Hey guys, just finished making my robable stores. Now, I added this to the script, so it adds 2 wanted level to his current wanted level. Look here:
Код:
GetPlayerWantedLevel(playerid, SetPlayerWantedLevel(playerid) +2);
And I get these errors:
Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~2\GAMEMO~1\Testing.pwn(3094) : warning 202: number of arguments does not match definition
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~2\GAMEMO~1\Testing.pwn(3094) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
I'm not sure why it doesnt work! please help
Re: Error with GetPlayerWantedLevel + SetPlayerWantedLevel -
dr.lozer - 03.03.2013
Код:
GetPlayerWantedLevel(playerid, SetPlayerWantedLevel(playerid) +2);
WTF!?
You set player's wantedlevel or get?
Use this man:
Код:
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) +2);
Re: Error with GetPlayerWantedLevel + SetPlayerWantedLevel -
Stefan10 - 03.03.2013
SetPlayerWantedLevel is not the right place you placed it where the Colors should be defined.Place it somewhere else
Re: Error with GetPlayerWantedLevel + SetPlayerWantedLevel -
FunnyBear - 03.03.2013
Quote:
Originally Posted by dr.lozer
Код:
GetPlayerWantedLevel(playerid, SetPlayerWantedLevel(playerid) +2);
WTF!?
You set player's wantedlevel or get?
Use this man:
Код:
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) +2);
|
Does it add +2 to his current wanted level?
Re: Error with GetPlayerWantedLevel + SetPlayerWantedLevel -
Jstylezzz - 03.03.2013
Yes, dr.lozer's code will add 2 wanted points.