17.04.2011, 13:51
Hello!
Can someone help me? Ich want to make a SupportSystem an with the command /showtickets, it sould show all tickets.
I have done something but when I use it my GTA brackdown.
This is the Code:
for(new i=0; i<MAX_PLAYERS; i++)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(i, pname, sizeof(pname));
new SupportData[128];
format(SupportData, sizeof(SupportData), "SupportTickets/%s.ini", pname);
for(new t=0; t<sizeof(SupportData); t++)
{
new spielername[256];
spielername = dini_Get(SupportData, "PlayerName");
new pTicket = dini_Int(SupportData, "TicketID");
new pAnzahl = dini_Int(SupportData, "TicketAnzahl");
SendClientMessage(playerid, COLOR_YELLOW, "**********************Support - Tickets**********************");
format(string, sizeof(string), "Ticketid: %d | SpielerName: %s | Anzahl der Tickets: %d", pTicket, spielername, pAnzahl);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
I save the datas in a ini file.
I hope someone can help me!
Can someone help me? Ich want to make a SupportSystem an with the command /showtickets, it sould show all tickets.
I have done something but when I use it my GTA brackdown.
This is the Code:
for(new i=0; i<MAX_PLAYERS; i++)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(i, pname, sizeof(pname));
new SupportData[128];
format(SupportData, sizeof(SupportData), "SupportTickets/%s.ini", pname);
for(new t=0; t<sizeof(SupportData); t++)
{
new spielername[256];
spielername = dini_Get(SupportData, "PlayerName");
new pTicket = dini_Int(SupportData, "TicketID");
new pAnzahl = dini_Int(SupportData, "TicketAnzahl");
SendClientMessage(playerid, COLOR_YELLOW, "**********************Support - Tickets**********************");
format(string, sizeof(string), "Ticketid: %d | SpielerName: %s | Anzahl der Tickets: %d", pTicket, spielername, pAnzahl);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
I save the datas in a ini file.
I hope someone can help me!