for(new w=0; w < 13; w++) { new string[12]; format(string, sizeof(string), "Weapon%d", w); mysql_get_field(string, QueryString); PlayerWeapons[playerid][w] = strval(QueryString); }