14.02.2016, 14:23
Confused by this error. It's returning in the server log (server console). When I use the function.
The line is where the loop starts as in the first line after the for.
I'm making it so anytime a 911 call is placed they move up on the police computer I.e a new call equals 0 so the old 0 should move to slot 1 (up to 15 calls on the list with the latest at the top.
The line is where the loop starts as in the first line after the for.
I'm making it so anytime a 911 call is placed they move up on the police computer I.e a new call equals 0 so the old 0 should move to slot 1 (up to 15 calls on the list with the latest at the top.
pawn Код:
format(string, sizeof(string), "OPERATOR: 'Okay, we have located your call to being around %s, please remain calm and await emergency services.'", GetLocation(playerid));
SendClientMessage(playerid, COLOUR_BLUE, string);
format(string, sizeof(string), "%s", GetLocation(playerid));
strcpy(PoliceCall[0][pol_loc], string);
strcpy(PoliceCall[0][pol_in], PoliceCallP[playerid][pol_in]);
PoliceCall[0][pol_rl] = PoliceCallP[playerid][pol_rl];
PoliceCall[0][pol_tih] = THrs;
PoliceCall[0][pol_tim] = TMins;
for(new x = 0; x < 15; x++)
{
PoliceCall[x + 1][pol_rl] = PoliceCall[x][pol_rl];
PoliceCall[x + 1][pol_tih] = PoliceCall[x][pol_tih];
PoliceCall[x + 1][pol_tim] = PoliceCall[x][pol_tim];
strcpy(PoliceCall[x + 1][pol_loc], PoliceCall[x][pol_loc]);
strcpy(PoliceCall[x + 1][pol_in], PoliceCall[x][pol_in]);
strcpy(PoliceCall[x + 1][pol_nm], PoliceCall[x][pol_nm]);
}