error 033: array must be indexed (variable "PFactionName")
#1

Code:
Код:
PFactionName[playerid] == cache_get_field_content(0,"Name");
Error:
Код:
error 033: array must be indexed (variable "PFactionName")
I want to load a faction name from the database.
Reply
#2

Show me New PFactionName code
Reply
#3

new PFactionName[64][MAX_PLAYERS];
Reply
#4

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

pawn Код:
new PFactionName[MAX_PLAYERS][64];
pawn Код:
cache_get_field_content(0, "Name", PFactionName[playerid], 1, 64);
Replace "1" with your connection handle.
Reply
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/MySQL/R33..._field_content

pawn Код:
new PFactionName[MAX_PLAYERS][64];
pawn Код:
cache_get_field_content(0, "Name", PFactionName[playerid], 1, 64);
Replace "1" with your connection handle.
Thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)