17.03.2015, 17:52
(All important things such as variables, names and stuff will be marked BOLD)
Hey guys, i am here with another problem today.
I am using registration system by Kush, as i mentioned in the last problem topic, and i need help.
I have done my jobs, which are using pJob every single job is different value, for example homeless is 0 cop is 1 and such.
Next i am setting their spawn positions and color and stuff like this in OnPlayerSpawn
it is working pretty fine.. i made an account, joined this job and disconnected. Than i logged again, and it perfectly spawned me into the position i set and it gave me the color i also set.
But.. when i left, and changed my name and joined again, so basically when i joined first time (when i joined cop job) i was ID 0 when i left and joined with another name again i was again ID 0, so when i joined with different name i spawned as a cop.
My friend told me, it is a playerid problem but i am not sure, how to fix it.
I tried to reset his stats when he join in by using:
it reseted it.
Then i tried to put in the line from register system to load his password when he log in, that he is possible to login by adding:
but.. it showed me 2 same errors which was saying
error 017: undefined symbol "name"
error 017: undefined symbol "value"
i thinked about it, and i will now show you the load data thing, which from i selected the loading password line.
so, as you are enable to see this:
,name[],value[]);
is probably the thing. But i am not sure, how to fix that errors which i mentioned, i mean.. i can insert public into public? So how to fix them? It is pretty messy error and hard for me, and i have no idea how to fix it.
The guy who will help me will earn reputation point from me, because it is really head-ache problem.
Thank you guys!
Hey guys, i am here with another problem today.
I am using registration system by Kush, as i mentioned in the last problem topic, and i need help.
I have done my jobs, which are using pJob every single job is different value, for example homeless is 0 cop is 1 and such.
Next i am setting their spawn positions and color and stuff like this in OnPlayerSpawn
Код:
if(PlayerInfo[playerid][pJob] == 1) { stuff }
But.. when i left, and changed my name and joined again, so basically when i joined first time (when i joined cop job) i was ID 0 when i left and joined with another name again i was again ID 0, so when i joined with different name i spawned as a cop.
My friend told me, it is a playerid problem but i am not sure, how to fix it.
I tried to reset his stats when he join in by using:
Код:
for(new i; pInfo: i < pInfo; i++) PlayerInfo[playerid][pInfo:i] = 0;
Then i tried to put in the line from register system to load his password when he log in, that he is possible to login by adding:
Код:
INI_Int("Pass",PlayerInfo[playerid][pPass]);
error 017: undefined symbol "name"
error 017: undefined symbol "value"
i thinked about it, and i will now show you the load data thing, which from i selected the loading password line.
Код:
forward LoadUser_data(playerid,name[],value[]); public LoadUser_data(playerid,name[],value[]) { //other stuff INI_Int("Pass",PlayerInfo[playerid][pPass]); }
,name[],value[]);
is probably the thing. But i am not sure, how to fix that errors which i mentioned, i mean.. i can insert public into public? So how to fix them? It is pretty messy error and hard for me, and i have no idea how to fix it.
The guy who will help me will earn reputation point from me, because it is really head-ache problem.
Thank you guys!