SA-MP Forums Archive
Help, question inside. - 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)
+--- Thread: Help, question inside. (/showthread.php?tid=428411)



Help, question inside. - PaulDinam - 05.04.2013

Im making an LSPD MDC, and I wanna make to show the last 20, 911 calls.
for example:
if there's 100 calls which hasn't been taken yet, how can I show the last 20 from the 100?
and how can I attach the listitem in the dialog to the right caller.


Re: Help, question inside. - park4bmx - 05.04.2013

give some variables to work with because if i do it with my own then you would be like what is this what is that ?

If u haven't got any then u shouldn't be at this stage!


Re: Help, question inside. - PaulDinam - 05.04.2013

I guess it should be like that?

pawn Код:
enum EMERGANCY_INFO
{
    callType[64],
    callCaller[MAX_PLAYER_NAME],
    callSitation[128],
    callLocation[64],
    callTrace[64]
}
new CallInfo[MAX_PLAYERS][EMERGANCY_INFO];



Re: Help, question inside. - park4bmx - 05.04.2013

that doesn help much

ill through u an example.
pawn Код:
UnAnswearCalls; //use it do at how many calls they missed (currently public var)
new CallID[100];//store the 100 calls
for(new i=0; i < sizeof UnAnswearCalls; i++)
{
      new tStr[120],FInalStr[280];
      format(tStr,sizeof tStr,"%s\n",CallID[i]);
      Strcat(FInalStr, tStr,sizeof FInalStr);
}
that will display the text of the Array named CallID by the number of mixed calls that are loop
Something like that.