Error with GetPlayerWantedLevel + SetPlayerWantedLevel
#1

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
Reply
#2

Код:
GetPlayerWantedLevel(playerid, SetPlayerWantedLevel(playerid) +2);
WTF!?

You set player's wantedlevel or get?

Use this man:

Код:
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) +2);
Reply
#3

SetPlayerWantedLevel is not the right place you placed it where the Colors should be defined.Place it somewhere else
Reply
#4

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?
Reply
#5

Yes, dr.lozer's code will add 2 wanted points.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)