1 werid error.
#1

been searching for ages and couldn't find whats wrong :/

Код:
  #define VHealthandArmour 20000
  
(line 187)main()
{
	print("\n----------------------------------");
	print("  Courtroom DM\n");
	print("----------------------------------\n");
}
new Float:RandomSpawn[][10] =
{
    {-1931.8972, 353.8917, 33.3985, 90.9442},
    {-1980.8889, 388.9207, 35.9688, 286.6835},
    {-1979.5837, 398.2762, 35.9688, 77.4473},
    {-2012.5474, 409.5304, 35.1719, 216.2319},
    {-2035.0690, 333.6588, 35.1719, 285.2741},
    {-1960.3954, 417.4300, 35.1719, 229.5003},
    {-1949.5421, 411.8539, 46.5128, 272.9091}
};
error:
Код:
C:\Documents and Settings\Hayden Bruin\Desktop\Haydz\Courtroom DM\gamemodes\CourtroomDM.pwn(187) : error 001: expected token: ";", but found "-identifier-"
Reply
#2

Show more of the code which is above the main function. There is probably a function not being closed. ( using ) or ; )
Reply
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Show more of the code which is above the main function. There is probably a function not being closed. ( using ) or ; )
Код:
#include <a_samp>
#include <core>
#include <float>
#include <streamer>

#pragma tabsize 0

#define COLOR_YELLOW 0xFFFF00AA

new bool:isafk[MAX_PLAYERS];
new Float:pHealth;
new spectateTimer[MAX_PLAYERS];
new KillingSpree[MAX_PLAYERS];
new Text3D:label[MAX_PLAYERS];

forward respawnCounter(playerid);
forward weapontimer(playerid);
forward AntKill(playerid)

#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_LIGHTRED 0xFF99AADD
#define COLOR_SEAGREEN 0x00EEADDF
#define COLOR_GRAYWHITE 0xEEEEFFC4
#define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_MEDIUMBLUE 0x63AFF00A
#define COLOR_NEUTRAL 0xABCDEF97
#define COLOR_BLACK 0x00000000
#define COLOR_NEUTRALGREEN 0x81CFAB00
#define COLOR_DARKGREEN 0x12900BBF
#define COLOR_LIGHTGREEN 0x24FF0AB9
#define COLOR_DARKBLUE 0x300FFAAB
#define COLOR_BLUEGREEN 0x46BBAA00
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_RED1 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD1 0xB4B5B7FF

/////////// Weapon prices ////////////

// INSTRUCTIONS :
// Change the 0 to the amount you want the weapon to be sold
// V = Weapon Price
// A = Weapon amount on buy

// Melee Weapons
  #define VBrassKnuckles 100
  #define ABrassKnuckles 1
  #define VGolfclub 100
  #define AGolfclub 1
  #define VNiteStick 100
  #define ANiteStick 1
  #define VKnife 500
  #define AKnife 1
  #define VBaseballBat 500
  #define ABaseballBat 1
  #define VShovel 100
  #define AShovel 1
  #define VPoolCue 100
  #define APoolCue 1
  #define VKatana 150
  #define AKatana 1
  #define VChainsaw 1000
  #define AChainsaw 1
  #define VPurpleDildo 100
  #define APurpleDildo 1
  #define VSmallWhiteVibrator 100
  #define ASmallWhiteVibrator 1
  #define VLargeWhiteVibrator 100
  #define ALargeWhiteVibrator 1
  #define VSilverVibrator 100
  #define ASilverVibrator 1
  #define VFlower 100
  #define AFlower 1
  #define VCane 100
  #define ACane 1

// Thrown Weapons
  #define VGrenade 2500
  #define AGrenade 10
  #define VTearGas 2500
  #define ATearGas 10
  #define VMolotovCocktail 2500
  #define AMolotovCocktail 10

// Pistols
  #define V9mm 1000
  #define A9mm 100
  #define VSilenced9mm 1000
  #define ASilenced9mm 100
  #define VDesertEagle 1000
  #define ADesertEagle 100

// Shotguns
  #define VShotgun 3000
  #define AShotgun 100
  #define VSawn-offShotgun 3000
  #define ASawn-offShotgun 100
  #define VCombatShotgun 3000
  #define ACombatShotgun 100

// SMG's
  #define VSMG 3000
  #define ASMG 500
  #define VUZI 3000
  #define AUZI 500
  #define VTec-9 3000
  #define ATec-9 500

// Rifles
  #define VAK-47 5000
  #define AAK-47 500
  #define VM4 5000
  #define AM4 500
  #define VCountryRifle 3000
  #define ACountryRifle 80
  #define VSniperRifle 5000
  #define ASniperRifle 50

// Special
  #define VRocketLauncher 50000
  #define ARocketLauncher 2
  #define VHeatSeekingRocketLauncher 50000
  #define AHeatSeekingRocketLauncher 2
  #define VFlamethrower 50000
  #define AFlamethrower 100
  #define VSatchelChargeandDetonator 25000
  #define ASatchelChargeandDetonator 25

// Extras
  #define VSprayCan 1000
  #define ASprayCan 500
  #define VFireExtinguisher 1000
  #define AFireExtinguisher 200
  #define VCamera 1000
  #define ACamera 500
  #define VNightvision******s 1000
  #define ANightvision******s 1
  #define VThermal******s 1000
  #define AThermal******s 1
  #define VParachute 1000
  #define AParachute 1

// Health and Armour
  #define VHealth 10000
  #define VArmour 10000
  #define VHealthandArmour 20000
  
main()
{
	print("\n----------------------------------");
	print("  Courtroom DM\n");
	print("----------------------------------\n");
}
Reply
#4

Your last forwarding of a function:
forward AntKill(playerid)

Doesn't have a ; to the end.

pawn Код:
forward respawnCounter(playerid);
forward weapontimer(playerid);
forward AntKill(playerid);
Reply
#5

Quote:
Originally Posted by mrmuffins
Посмотреть сообщение
Your last forwarding of a function:
forward AntKill(playerid)

Doesn't have a ; to the end.

pawn Код:
forward respawnCounter(playerid);
forward weapontimer(playerid);
forward AntKill(playerid);
ahh, was looking for that for ages :/, thanks alot man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)