A few Small Newb errors
#1

I get these Errors
Код:
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(35) : error 001: expected token: ";", but found "enum"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(259) : error 017: undefined symbol "classid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(259) : warning 215: expression has no effect
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(259) : error 001: expected token: ";", but found ")"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(259) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(259) : fatal error 107: too many error messages on one line

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


5 Errors.
On This Code

Line 35 to 41
Код:
enum pos
{
	Float:X,
	Float:Y,
	Float:Z
};
new TMPOS[MAX_PLAYERS][pos];
Line 259
Код:
  	if(classid = >1)
With Line 259 I want to Do If its Classid = 0,1
Код:
	TextDrawHideForPlayer(playerid, OverMovie);
	TextDrawHideForPlayer(playerid, UnderMovie);
	PlayerPlaySound(playerid, 1063, 0.0, 0.0, 0.0);
	SetTimerEx("WaitFunction", 500, 0, "i", playerid);
	return 1;
}
Reply
#2

1: remove the ";" after the bracket in the enum.
2: classid is not a defined variable in that function.
3: put the operands as >= not = >. If they are as is, they dont do anything.
4: as a result of #3 it thinks you want to assign it a value, and use ; as a ending. #3 will fix this.
5: Should go way after fixing 1-3.
Reply
#3

Quote:
Originally Posted by Pghpumpkin
1: remove the ";" after the bracket in the enum.
2: classid is not a defined variable in that function.
3: put the operands as >= not = >. If they are as is, they dont do anything.
4: as a result of #3 it thinks you want to assign it a value, and use ; as a ending. #3 will fix this.
5: Should go way after fixing 1-3.
The enum is correct.
Reply
#4

Ive been Attempting to add a few FS's into My GM and its gone horribly wrong Can anyone help?

http://deathgod.pastebin.com/m3d0b879d Source)


And All my Errors
Код:
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(33) : error 001: expected token: ";", but found "new"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(276) : error 017: undefined symbol "MAX_BUY_V"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(333) : warning 217: loose indentation
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(396) : error 004: function "Tunen" is not implemented
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(528) : error 079: inconsistent return types (array & non-array)
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(531) : warning 217: loose indentation
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(531) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(531) : error 004: function "OnGameModeExit" is not implemented
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(533) : error 079: inconsistent return types (array & non-array)
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(536) : warning 225: unreachable code
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(536) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(536) : error 004: function "OnPlayerRequestClass" is not implemented
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(538) : error 017: undefined symbol "classid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(540) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(542) : error 017: undefined symbol "classid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(544) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(546) : error 079: inconsistent return types (array & non-array)
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(549) : warning 225: unreachable code
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(549) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(549) : error 004: function "OnPlayerRequestSpawn" is not implemented
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(551) : error 079: inconsistent return types (array & non-array)
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(554) : warning 225: unreachable code
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(554) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(554) : error 004: function "OnPlayerConnect" is not implemented
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(556) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(557) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(560) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(563) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(564) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(565) : error 017: undefined symbol "playerid"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\CreativeRp.pwn(566) : error 079: inconsistent return types (array & non-array)

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


26 Errors.
Reply
#5

Line 32, add a ; at the end.
Reply
#6

You forgot a ; on line 32
You forgot a ; on line 286

Line 317: What's this supposed to do? Copy the WHOLE code

Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)