PHP код:
enum jInfo
{
valarme,
v2alarme,
v3alarme,
v4alarme
};
PHP код:
forward OnQueryFinish(resultid, extraid, ConnectionHandle);
public OnQueryFinish(resultid, extraid, ConnectionHandle)
{
new Rows, Field, string[256];
if(resultid != 0)
{
cache_get_data(Rows, Field);
}
switch(resultid)
{
case 1:
{
if(Rows == 1)
{
new content[29];
cache_get_field_content(0, "valarme", content); PlayerInfo[extraid][valarme] = strval(content);
cache_get_field_content(0, "v2alarme", content); PlayerInfo[extraid][valarme] = strval(content);
cache_get_field_content(0, "v3alarme", content); PlayerInfo[extraid][valarme] = strval(content);
cache_get_field_content(0, "v4alarme", content); PlayerInfo[extraid][valarme] = strval(content);