Error with compiling location script
#1

Hi guys im using the a_zone.inc , but now im getting this error when i use this script:

pawn Код:
#include <a_samp>
#include <a_zones>

new Zone[MAX_ZONE_NAME];
new Location[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    for(new i = 0; i <MAX_PLAYERS; i++)
      {
            GetPlayer2DZone(i, Zone, MAX_ZONE_NAME);
            Location[i] = Zone;
      }
  return 1;
}
This is the error i get:

pawn Код:
E:\_Spellen\bkp\filterscripts\testing.pwn(13) : error 006: must be assigned to an array
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
Whats wrong?
Reply
#2

Plz?
Reply
#3

whats line 13?

and you didnt give any variables to the script .. like 2938.823, -blabla, blabla
Reply
#4

pawn Код:
Location[i] = Zone;
Use string functions.

Read WIKI and pawn-lang.pdf
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)