Weird problem
#1

Hi !

1. I need some help with some variables. For example, I have pJob variable default 0. I use /getjob, pJob gets a value (jobid) 1,2,3,4,5... After relog(sometimes), dead(sometimes) or few time it disappear. Gets pJob value 0 again. I searched for pJob = 0; on the entire gamemode and i didn't find anything. The same problem with skins, i will be spawned after dead with a random skin event if i don't use a random function.

2. I use a count function to see how many players are playing paintball. InPaint[playerid] = 1; when a player is entering in area. Sometimes the player gets value 1 and sometimes he needs to enter for two, three times to gets that value, why?;

Any ideas ?
Reply
#2

1. Make sure you defining pJob for MAX_PLAYERS
2. Maybe desync can do it, or mistakes in script
Reply
#3

I use
Код HTML:
enum playervEnum {
	Float: pHealth,
        pJob,
        pLevel, etc...
I am sure that is a mistake, but I don't know where. I didn't use pJob] = 0 anywhere, also pSkin] = 0 etc.

How can I see if desync makes it? Any plugin or something?
Reply
#4

I saw that pJob gets random value for all the players. For example, a player will have after spawn/relog or after few time pJob] = 97, another one has pJob] = 114 etc. Those id's doesn't exist. I checked pJob = on the entire gamemode and ai don't use a random function for this variable.
Reply
#5

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)