help :c
#1

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?
Reply
#2

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

Read Important Note box.
Reply
#3

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); 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)