Actor Problem
#1

Hi, I have installed the system at the server (https://sampforum.blast.hk/showthread.php?pid=3945923#pid3945923) , but other actors are also being robbed, how can we solve this problem ?
Reply
#2

the problem continues
Reply
#3

the "actorid" does that.
Reply
#4

The problem lies on line 240 of the robbery include.

Код:
				new actorid = GetPlayerCameraTargetActor(playerid);


				if(actorid == INVALID_ACTOR_ID)
                               if(actorid == INVALID_ACTOR_ID || !robbery_data[actorid][actor_created])
					return 1;

				if(gettime() - robbery_data[actorid][actor_robbedRecently] < 60 * ROBBERY_WAIT_TIME)
						return OnPlayerStartRobbery(playerid, actorid, 1);

				robbery_data[actorid][actor_robbedRecently] = gettime();
				RunActorAnimationSequence(playerid, actorid, 0);
			}
The include has no internal checking if an actor was actually created by this system. Instead it just uses any valid actorid it finds.
Reply
#5

Quote:
Originally Posted by Pottus
Посмотреть сообщение
The problem lies on line 240 of the robbery include.

Код:
				new actorid = GetPlayerCameraTargetActor(playerid);


				if(actorid == INVALID_ACTOR_ID)
                               if(actorid == INVALID_ACTOR_ID || !robbery_data[actorid][actor_created])
					return 1;

				if(gettime() - robbery_data[actorid][actor_robbedRecently] < 60 * ROBBERY_WAIT_TIME)
						return OnPlayerStartRobbery(playerid, actorid, 1);

				robbery_data[actorid][actor_robbedRecently] = gettime();
				RunActorAnimationSequence(playerid, actorid, 0);
			}
The include has no internal checking if an actor was actually created by this system. Instead it just uses any valid actorid it finds.
Oh god, thank you so much sir, My problem is resolved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)