SA-MP Forums Archive
help :c - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help :c (/showthread.php?tid=624255)



help :c - StrikerZ - 13.12.2016

Well. I dont know why the name of faction isnt saving and im just fed up finding whats the issue.
on register
PHP код:
format(pInfo[playerid][fname], 50"NONE"); 
and it shows NONE but after we log out.
PHP код:
"UPDATE `users` SET `FacName` = '%s' WHERE `Name` = '%s'",pInfo[playerid][fname],PN(playerid
So this is the onplayerdisconnect code and on login.
PHP код:
cache_get_field_content(0,"FacName",pInfo[playerid][fname]); 
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?


Re: help :c - Konstantinos - 13.12.2016

https://sampwiki.blast.hk/wiki/MySQL/R33..._field_content

Read Important Note box.


Re: help :c - Yaa - 13.12.2016

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Well. I dont know why the name of faction isnt saving and im just fed up finding whats the issue.
on register
PHP код:
format(pInfo[playerid][fname], 50"NONE"); 
and it shows NONE but after we log out.
PHP код:
"UPDATE `users` SET `FacName` = '%s' WHERE `Name` = '%s'",pInfo[playerid][fname],PN(playerid
So this is the onplayerdisconnect code and on login.
PHP код:
cache_get_field_content(0,"FacName",pInfo[playerid][fname]); 
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?
use this -v

why u didn't ask me before :/

PHP код:
cache_get_field_content(0,"FacName",pInfo[playerid][fname], 1100);