ocmd:setversion(playerid,params[])
{
if(!isAdmin(playerid,8))return 0;
new query[128];
if(sscanf(params,"s",Version))return SendClientMessage(playerid,CL_GREEEN,"** Benutze: /setversion [VersionsText]");
TextDrawSetString(VersionsDraw,sInfo[playerid][Version]);
mysql_format(dbhandle, query, 200, "INSERT INTO `version` (`versionstext`) VALUES ('%s')",Version);
mysql_function_query(dbhandle,query,false,"","");
return 1;
}
forward loadversion(playerid);
public loadversion(playerid)
{
new dest[128];
cache_get_field_content(0, "version", dest);
TextDrawSetString(VersionsDraw,dest);
return 1;
}
funktioniert leider nicht
zusätzlich hab ich in der Konsole folgenden Fehler
[13:37:23] sscanf warning: Strings without a length are deprecated, please add a destination size.