Errors Help
#1

Код:
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(51) : error 020: invalid symbol name ""
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(346) : error 017: undefined symbol "CreateDynamicCP"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(349) : error 022: must be lvalue (non-constant)
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1109) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP")
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : error 029: invalid expression, assumed zero
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : error 029: invalid expression, assumed zero
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : warning 215: expression has no effect
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Here script

Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == CP[Zone])
{
if(tCheck[Zone] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
if(UnderAttack[Zone] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
UnderAttack[Zone] = 1;
timer[playerid][Zone] = SetTimerEx("SetZone",25000,false,"i", playerid);
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0,0,0,0,0,0);
GangZoneFlashForAll(Zone[Zone],COLOR_RED); //1119
SendClientMessageToAll(GREEN, "Zone is being taken over");
zDefine[playerid] = Zone;
retiurn 1;
}
Код:
CP[Zone] = CreateDynamicCP(-552.5542,2593.9897,53.9348); //346
CapZone[Zone] = GangZoneCreate(-611.2991,2643.4680,-499.0586,2532.8008);

	Zone = GangZoneCreate(974.9659,979.9814,1177.8164,1172.6105); //349
Reply
#2

You're using duplicate variable names: Zone

You also need the streamer plugin by Incognito: https://sampforum.blast.hk/showthread.php?tid=102865
Reply
#3

So I will use forward OnPlayerEnterDynamicCP(playerid, checkpointid) ?
And new #define CreateDynamicPC;
And for Zone i change it to CZone ?

Please Reply
Reply
#4

Do you have this plugin in the first place?And is it included in your GM #include <streamer>?
Reply
#5

Change Zone to CZone and then install the plugin I linked you to in my previous post.
Reply
#6

Ok Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)