help with orgname
#8

Try it with that

pawn Код:
CMD:request(playerid, params[])
{
    if(sscanf(params, "i", params[0])) return SendClientMessage(playerid, red, "USAGE:/request [org]");
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    format(string, sizeof string, "UPDATE ostats SET req=%d WHERE Name='%s'", params[0], name);
    mysql_query(string);
    format(string, sizeof string, "SELECT * FROM orgs WHERE ID=%d", params[0]);
    mysql_query(string);
    mysql_store_result();
    mysql_fetch_row_format(string, "|");
    mysql_free_result();
    params[0] = (strfind(string, "|", false) + 1);
    string[strfind(string, "|", false, params[0])] = EOS;
    format(string, sizeof string, "~%s is requesting to join %s.", name, string[params[0]]);
    SendClientMessageToAll(COLOR_ORANGE, string);
    return 1;
}
Reply


Messages In This Thread
help with orgname - by THE_KNOWN - 03.02.2011, 11:51
AW: help with orgname - by Nero_3D - 03.02.2011, 12:17
Re: help with orgname - by THE_KNOWN - 03.02.2011, 12:30
AW: Re: help with orgname - by Nero_3D - 03.02.2011, 13:26
Re: help with orgname - by THE_KNOWN - 03.02.2011, 13:48
AW: Re: help with orgname - by Nero_3D - 03.02.2011, 14:07
Re: help with orgname - by THE_KNOWN - 03.02.2011, 14:24
AW: help with orgname - by Nero_3D - 03.02.2011, 15:01
Re: help with orgname - by Danny - 03.02.2011, 15:14
Re: help with orgname - by Steven Paul - 03.02.2011, 15:22

Forum Jump:


Users browsing this thread: 4 Guest(s)