25.09.2014, 04:14
Okay, a few things.
1. Don't post +rep in your threads, it makes spammers and idiots reply.
2. You can not give a reputation if you have a rep less than 0.
3. A stock, as posted above is pretty well pointless, as you'll only use it once..also it's pointless to ever add the word "stock" infront of your function.
4. Your issue is that you do not reset the variables. Under OnPlayerDisconnect, set all the variables in your player array to 0. If it's a string, for example a name, add new name[MAX_PLAYER_NAME]
pInfo[playerid][Name] = name; //your variable might be different
PM me if you need further explanation.
1. Don't post +rep in your threads, it makes spammers and idiots reply.
2. You can not give a reputation if you have a rep less than 0.
3. A stock, as posted above is pretty well pointless, as you'll only use it once..also it's pointless to ever add the word "stock" infront of your function.
4. Your issue is that you do not reset the variables. Under OnPlayerDisconnect, set all the variables in your player array to 0. If it's a string, for example a name, add new name[MAX_PLAYER_NAME]
pInfo[playerid][Name] = name; //your variable might be different
PM me if you need further explanation.