error 033: array must be indexed (variable "PFactionName") - 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: error 033: array must be indexed (variable "PFactionName") (
/showthread.php?tid=575026)
error 033: array must be indexed (variable "PFactionName") -
SandKing94 - 23.05.2015
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.
Re: error 033: array must be indexed (variable "PFactionName") -
LMaxCo - 23.05.2015
Show me New PFactionName code
Re: error 033: array must be indexed (variable "PFactionName") -
SandKing94 - 23.05.2015
new PFactionName[64][MAX_PLAYERS];
Re: error 033: array must be indexed (variable "PFactionName") -
Konstantinos - 23.05.2015
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.
Re: error 033: array must be indexed (variable "PFactionName") -
SandKing94 - 23.05.2015
Quote:
Originally Posted by Konstantinos
|
Thank you.