help with orgname
#1

Код:
CMD:request(playerid, params[])
{
	new id,name[MAX_PLAYER_NAME],tmp[128],string[128];
	if(sscanf(params,"i",id)) return SendClientMessage(playerid, red, "USAGE:/request [org]");
	GetPlayerName(playerid, name, sizeof(name));
	new query[128];
	format(query, sizeof(query), "SELECT * FROM orgs WHERE ID=%d",id);
	mysql_query(query);
 	mysql_store_result();
 	new row[128];
	new field[3][32];
    mysql_fetch_row_format(row, "|");
	explode(row, field, "|");
	tmp[127]=strval(field[1]);
	mysql_free_result();
	new query1[128];
	format(query1,sizeof(query1), "UPDATE ostats SET req=%d WHERE Name='%s'",id,name);
	mysql_query(query1);
	format(string, sizeof(string), "~%s is requesting to join %s.",name,tmp[127]);
	SendClientMessageToAll(COLOR_ORANGE, string);
	return 1;
}
it doesnt show the org name which is stored in the variable "tmp".
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: 3 Guest(s)