Compile problem
#1

When i compile i have these errors, i dont know why, can you help me guys?


Errors:
C:\Users\X\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : error 012: invalid function call, not a valid address
C:\Users\X\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : warning 215: expression has no effect
C:\Users\X\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : warning 215: expression has no effect
C:\Users\X\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : warning 215: expression has no effect
C:\Users\X\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : warning 215: expression has no effect
C:\Users\X\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : warning 215: expression has no effect
C:\Users\X\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : error 001: expected token: ";", but found ")"
C:\Users\Stelian\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : error 029: invalid expression, assumed zero
C:\Users\Stelian\Desktop\CE-RP-master\gamemodes\cerp.pwn(2020) : fatal error 107: too many error messages on one line

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


4 Errors.

Line:
bankworker1 = CreateActor(240, -2483.0952,3476.2000,2004.6260,2.0164);
Reply
#2

Post the line 2020, how we could help if we don`t know what is on that line
Reply
#3

//Start of functions:

public OnGameModeInit()
{
TSC_Connect("serveradmin", "1Fh1PXFn", "217.182.206.227", 9987);
SetGameModeText(SCRIPT_REV);
speedotimer = SetTimer("Speedometer", 555, true);
ourConnection = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD);
skins = LoadModelSelectionMenu("skins.txt");
AddPlayerClass(0,0,0,0,0,0,0,0,0,0,0);

if(mysql_errno() != 0)
printf ("[DATABASE]: Connection failed to '%s'...", SQL_DATABASE);

else printf ("[DATABASE]: Connection established to '%s'...", SQL_DATABASE);
//Bayside Bank
this is the line: bankworker1 = CreateActor(240, -2483.0952,3476.2000,2004.6260,2.0164);
SetActorVirtualWorld(bankworker1, 9583);
bankworker2 = CreateActor(150, -2485.1477,3476.2000,2004.6260,2.0164);
SetActorVirtualWorld(bankworker2, 9583);
bankworker3 = CreateActor(141, -2479.1157,3476.2000,2004.6260,2.0164);
SetActorVirtualWorld(bankworker3, 9583);
ActorIlligalDealer = CreateActor(1, 300.2266,306.5119,999.1484,6.1841); // Illigal Dealer
SetActorVirtualWorld(ActorIlligalDealer, 16144);

CreatePickup(1247, 1, -2613.8738, 2264.2920, 8.2314, -1);
CreatePickup(1239, 1, -2648.2458, 2240.1338, 1009.0131, -1);
CreatePickup(1239, 1, -2541.6909, 2346.4246, 5.2455, -1);
CreatePickup(1239, 1, -2537.4355, 2356.0823, 5.2455, -1);
mysql_log(LOG_ERROR | LOG_WARNING);
SetTimer("JailTimer", 1000, 1);
for (new i = 1; i < MAX_FACTIONS; i ++)
{
FactionOnDuty[i] = 0;
}
Reply
#4

Show me how is bankworker1 defined? (new bankworker1...)

And next time use [*code] [*/code] around the pwn code text (without *)
Reply
#5

Quote:
Originally Posted by TokicMajstor
Посмотреть сообщение
Show me how is bankworker1 defined? (new bankworker1...)

And next time use [*code] [*/code] around the pwn code text (without *)
//Bayside Bank
new bankworker1;
new bankworker2;
new bankworker3;
Reply
#6

Quote:
Originally Posted by SileAdv
Посмотреть сообщение
//Bayside Bank
new bankworker1;
new bankworker2;
new bankworker3;
Try like this:
Код:
new Actor[MAX_ACTORS]; //if MAX_ACTORS gives error, just make #define MAX_ACTORS  1000 , on place where are the other defines
Код:
Actor[0] = CreateActor(.....) //bank actor 1
Actor[1] = CreateActor(.....) //bank actor 2
Reply
#7

Quote:
Originally Posted by TokicMajstor
Посмотреть сообщение
Try like this:
Код:
new Actor[MAX_ACTORS]; //if MAX_ACTORS gives error, just make #define MAX_ACTORS  1000 , on place where are the other defines
Код:
Actor[0] = CreateActor(.....) //bank actor 1
Actor[1] = CreateActor(.....) //bank actor 2
Doesn't works too.

Код:
new bankworker1[MAX_ACTORS];
new bankworker2[MAX_ACTORS];
new bankworker3[MAX_ACTORS];

#define MAX_ACTORS  (50)
Sames errors.
Reply
#8

Edit: Fixed, thanks guys for help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)