#Edit:
Ich habe das Problem behoben, indem ich einfach 26 Spalten mit den TeamIDs erstellt habe.
Der Inhalt dieses ThemasInhalt anzeigen
Hey Leute.
Ich wollte etwas was auf Dini war zu MySQL machen und das hab ich dann so gemacht:
SQL
public LoadGangmotd(){ new string[128]; for(new t = 0; t < MAX_TEAMIDS; t++) { format(string, sizeof(string),"SELECT * FROM `gangmotd` WHERE `TeamID` = '%d'", t); self_mysql_query(string); mysql_store_result(MySQLConnection); if(mysql_num_rows(MySQLConnection) != 0) { mysql_fetch_row_format(string); new var[ 128 ]; self_mysql_get_field("Nachricht", var); KassenInfo[t][GangMotd] = strval( var ); } } return 1;}public SaveGangmotd(){ new string[128]; for(new t = 0; t < MAX_TEAMIDS; t++) { format(string, sizeof(string),"SELECT * FROM `gangmotd` WHERE `TeamID` = '%d'", t); self_mysql_query(string); mysql_store_result(MySQLConnection); new var[768]; format(var, sizeof(var), "UPDATE `gangmotd` SET `Nachricht`='%s' WHERE `TeamID`='%d'", KassenInfo[t][GangMotd], t); self_mysql_query(var); } return 1;}
Inhalt anzeigen
Inhalt anzeigen
Das Problem aber ist - Es speichert nichts ab
Die Tabelle hab ich so erstellt:
Es wäre verdammt nett, wenn mir einer dabei helfen könnte.
Inhalt anzeigen
Inhalt anzeigen
Mit freundlichen Grüßen,
Voxa