Errors
#1

Hi
i have errors on this line
new zone[MAX_ZONE_NAME];
pawn Код:
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\sadassa\gamemodes\GRP.pwn(5882) : error 008: must be a constant expression; assumed zero
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\sadassa\gamemodes\GRP.pwn(5882) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\sadassa\gamemodes\GRP.pwn(5882) : error 036: empty statement
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\sadassa\gamemodes\GRP.pwn(5882) : fatal error 107: too many error messages on one line
Reply
#2

Show us your Code...
Reply
#3

Show us lines from 5880 to 5890
Reply
#4

pawn Код:
{
            new zone[MAX_ZONE_NAME]; -the errors here
            GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
            new strv[256];
            format(strv, sizeof(strv), "Your %s is parked here(in %s)", VehicleNames[GetVehicleModel(vehi)-400], zone);
            SendClientMessage(playerid, COLOR_YELLOW, strv);
            VCP[playerid] = 0;
            if(veh1[playerid] == vehi)
                veh1[playerid] = 999;
            if(veh2[playerid] == vehi)
                veh2[playerid] = 999;
Reply
#5

GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);

Show us stock of this function
Reply
#6

i dont have this stock
What to do i just need to fix this error
Reply
#7

From where are you loading that? Show us all #includes you use
Reply
#8

It's something with the define
pawn Код:
#include <a_samp>
#include <core>
#define KEY_ENTER 16
#define KEY_HORN  (55555)
#include <float>
#include <time>
#include <file>
#define fwrite fwrite_utf8
#include <utils>
#include <dutils>
#include <a_zones>
#include <Dini>
#include <Arpadon_AC>
//#include <streamer>
#include <Y_Objects>
#include <dudb>
Reply
#9

bump!
Reply
#10

little help
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)