Message Repeat x5
#1

Problem: DisablePlayerCheckpoint(playerid); dont work and SetPlayerCheckpoint(playerid, KonobarC.... dont work

Код:
[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola

[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola

[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola

[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola

[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola
Код:
if(Konobar[playerid] == 1)
{
if(DostavljenoPorudzbina[playerid] == 0) return DostavljenoPorudzbina[playerid] = 0; DisablePlayerCheckpoint(playerid); RemovePlayerAttachedObject(playerid, 0);
SCM(playerid, COLOR_WHITE, "[POSAO] {dd750d}Odnesite porudzbinu do stola");
Konobar[playerid] = 2;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPlayerAttachedObject( playerid, 0, 2219, 1, 0.002953, 0.469660, -0.009797, 269.851104, 88.443557, 0.000000, 0.804894, 1.000000, 0.822361 );
DisablePlayerCheckpoint(playerid);
new rand = random(sizeof(KonobarCP));
SetPlayerCheckpoint(playerid, KonobarCP[rand][0], KonobarCP[rand][1], KonobarCP[rand][2], 1.0);
}
Reply
#2

make sure that the message is not in a loop and what is that SCM? is it simply a define for sendclientmessage?
Reply
#3

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
make sure that the message is not in a loop and what is that SCM? is it simply a define for sendclientmessage?
yes
Reply
#4

There is nowhere loop

Yes,scm is sendclientmessage
Reply
#5

show the full code of where this message is being sent.
Reply
#6

This is full code in OnPlayerEnterCheckPoint
Reply
#7

Oh, well putting Konobar[playerid] =0; underneath if(Konobar[playerid] == 1) { will fix it or at least should, if you're using that variable at other places then create another one put next to that if statement a && variable ==1 or 0 then set it opposite under the if statement.
Reply
#8

Again message spam.
Fix please i try make new konobar2 but still spamming


Код:
if(Konobar[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
Konobar[playerid] = 0;
Konobar2[playerid] = 1;
if(DostavljenoPorudzbina[playerid] == 0) return DostavljenoPorudzbina[playerid] = 0; DisablePlayerCheckpoint(playerid); RemovePlayerAttachedObject(playerid, 0);
SCM(playerid, COLOR_WHITE, "[POSAO] {dd750d}Odnesite porudzbinu do stola");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPlayerAttachedObject( playerid, 0, 2219, 1, 0.002953, 0.469660, -0.009797, 269.851104, 88.443557, 0.000000, 0.804894, 1.000000, 0.822361 );
new rand = random(sizeof(KonobarCP));
SetPlayerCheckpoint(playerid, KonobarCP[rand][0], KonobarCP[rand][1], KonobarCP[rand][2], 1.0);
}
if(Konobar2[playerid] == 1)
{
SetTimerEx("SpawnFreeze", 2000, 0, "i", playerid);
StopLoopingAnim(playerid);
ClearAnimations(playerid);
DisablePlayerCheckpoint(playerid);
Konobar[playerid] = 1;
DostavljenoPorudzbina[playerid] -= 1;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPlayerCheckpoint(playerid,1715.5977,-1130.2435,24.1847,1.0);
}
Reply
#9

help?
Reply
#10

I already told you how to do this, if you won't show the whole onplayerentercheckpoint and the place where you use SetPlayerCheckpoint then i can't help further.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)