13.12.2016, 13:23
Well. I dont know why the name of faction isnt saving and im just fed up finding whats the issue.
on register
and it shows NONE but after we log out.
So this is the onplayerdisconnect code and on login.
What is wrong in that it makes the name blank with no name -_-
EDIT:i checked my faction name in phpmyadmin and there it is showing NONE that means its saving in mysql db but not loading into variable. What's the problem?
on register
PHP код:
format(pInfo[playerid][fname], 50, "NONE");
PHP код:
"UPDATE `users` SET `FacName` = '%s' WHERE `Name` = '%s'",pInfo[playerid][fname],PN(playerid)
PHP код:
cache_get_field_content(0,"FacName",pInfo[playerid][fname]);
EDIT:i checked my faction name in phpmyadmin and there it is showing NONE that means its saving in mysql db but not loading into variable. What's the problem?