Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] dialog show problem

 
  • 0 Vote(s) - 0 Average
Pawn dialog show problem
byxtonim
Offline

Burgershot Member
Posts: 1
Threads: 1
Joined: Nov 2020
Reputation: 0
Location: Romania
#1
2020-11-02, 10:42 AM
[color=rgb( var(--theme-link) )]https://imgur.com/a/S2Bfb3f[/color]
why the dialog isn't show properly?

/matches

Code:
CMD:matches(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 50.0, 834.6208,7.6082,1004.1870)) return SCM(playerid, -1, "Nu esti la locul potrivit!");
new szDialog[128], szDialog2[580];
strcat(szDialog2, "STATUS - TEAMS\t1\tX\t2\n");
for(new i = 0; i < 6; i++)
{
teamPrize(i);
format(szDialog, sizeof(szDialog), "{fff000}{fff000}[STARTING IN %d]{ffffff} - %s vs %s\t%d.0\t%d.0\t%d.0\n", startMatchTime[i], firstTeam(i+1), secondTeam(i+1), teamPlayerPrize1[i], teamPlayerPrize2[i], teamPlayerPrize3[i]);
strcat(szDialog2, szDialog);
}
ShowPlayerDialog(playerid, DIALOG_BET, DIALOG_STYLE_TABLIST_HEADERS, "Football Matches - Betting", szDialog2, "Select", "Cancel");

return 1;
}


FIRSTTEAM, SECONDTEAM
Code:
function firstTeam(team)
{
new string[128];
switch(team)
{
case 1: string = "FC Gilau West";
case 2: string = "CFR Cluj";
case 3: string = "Barcelona";
case 4: string = "Everton";
case 5: string = "Werder Bremen";
case 6: string = "Hoffenheim";
}
return 1;
}
function secondTeam(team)
{
new string[128];
switch(team)
{
case 1: string = "FC Targu Neamt";
case 2: string = "FC Botosani";
case 3: string = "Real Madrid";
case 4: string = "Manchester City";
case 5: string = "B. Monchengladbach";
case 6: string = "Augsburg";
}
return 1;
}


startmatchtime

Code:
[color=#353c41][size=small][font=monospace, monospace][color=#000000]function resetTeamTimer(team)

{
    new timp = 60 + random(60);
    startMatchTime[team] = timp; 
    return 1;
}[/color][/font][/size][/color]
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode