If a player is selling an item?
#1

I have an auction system, its nearly done just having trouble with something..

I have these:
Quote:

new ItemSubmitted[MAX_PLAYERS];
new ItemSubmittedName[MAX_PLAYERS][128];

CMD:
Quote:

new string[128];
if(dialogid == 3613)
{
if(response)
{
if(listitem == 0)
{
foreach(Player, i)
{
if(ItemSubmitted[i] == 1)
{
// No idea what I can put here to find if people have submitted an item and then submit there name
}
format(string, sizeof(string), "%s is selling %s.", GetPlayerNameEx(i), ItemSubmittedName);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
return 1;
}
}
}

I cut the other 'listitem' out since they werent needed, I get no errors but I have no idea how I can find players names that have submitted then send it via SCM, I think I did some of it right
Reply
#2

bump
Reply
#3

pawn Код:
if(ItemSubmitted[i] == 1) // I expect this checks if the player has submitted an item
{ // just moved the code in here
    format(string, sizeof(string), "%s is selling %s.", GetPlayerNameEx(i), ItemSubmittedName[i]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)