Errors - 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: Errors (
/showthread.php?tid=289137)
Errors -
Chris_Morrison - 10.10.2011
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
Re: Errors -
$India$ - 10.10.2011
Show us your Code...
Re: Errors -
[MG]Dimi - 10.10.2011
Show us lines from 5880 to 5890
Re: Errors -
Chris_Morrison - 10.10.2011
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;
Re: Errors -
[MG]Dimi - 10.10.2011
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
Show us stock of this function
Re: Errors -
Chris_Morrison - 10.10.2011
i dont have this stock
What to do i just need to fix this error
Re: Errors -
[MG]Dimi - 10.10.2011
From where are you loading that? Show us all #includes you use
Re: Errors -
Chris_Morrison - 10.10.2011
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>
Re: Errors -
Chris_Morrison - 11.10.2011
bump!
Re: Errors -
Chris_Morrison - 11.10.2011
little help