Empty Dialog (MySQL)
#6

Use this -
pawn Code:
cache_get_field_content(0, "Name", temp), bName = strval(temp);
        cache_get_field_content(0, "Reason", temp), bReason = strval(temp);
        cache_get_field_content(0, "BannedBy", temp), bannedBy = strval(temp);
        cache_get_field_content(0, "IP", temp), bIP = strval(temp);
        cache_get_field_content(0, "BanID", temp), bID = strval(temp);
        cache_get_field_content(0, "Expiration", temp), bExpiration = strval(temp);

        /*bName = cache_get_field_content_int(0, "Name");
        bReason = cache_get_field_content_int(0, "Reason");
        bannedBy = cache_get_field_content_int(0, "BannedBy");
        bIP = cache_get_field_content_int(0, "IP");
        bID = cache_get_field_content_int(0, "BanID");
        bExpiration = cache_get_field_content_int(0, "Expiration");
        #pragma unused temp*/
You will use cache_get_field_content(0,.....)
The first parameter of cache_get_field_content is for row number since row number starts from 0 so it will be 0, if you have more than one rows then you change the value of first parameter to row number.
Reply


Messages In This Thread
Empty Dialog (MySQL) - by FunnyBear - 13.02.2015, 22:32
Re: Empty Dialog (MySQL) - by Maximus0 - 13.02.2015, 22:55
Re: Empty Dialog (MySQL) - by FunnyBear - 13.02.2015, 22:58
Re: Empty Dialog (MySQL) - by Maximus0 - 13.02.2015, 23:45
Re: Empty Dialog (MySQL) - by FunnyBear - 14.02.2015, 00:26
Re: Empty Dialog (MySQL) - by BroZeus - 14.02.2015, 06:12
Re: Empty Dialog (MySQL) - by FunnyBear - 14.02.2015, 10:43
Re: Empty Dialog (MySQL) - by Inn0cent - 14.02.2015, 11:05
Re: Empty Dialog (MySQL) - by FunnyBear - 14.02.2015, 11:12
Re: Empty Dialog (MySQL) - by Jimmy0wns - 14.02.2015, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)