SA-MP Forums Archive
/showtickets Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /showtickets Problem (/showthread.php?tid=249165)



/showtickets Problem - klaus741258 - 17.04.2011

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!


AW: /showtickets Problem - klaus741258 - 17.04.2011

//CLOSE

I have it ^^