Whirpool Installation Problem.
#1

This has been fixed.
Reply
#2

Have you got 2 main's?
Reply
#3

Yes there's one directly below that,

Код HTML:
// The main function (used only once when the server loads)
main()
{
	// Print some standard lines to the server's console
	print("\n----------------------------------");
	print(GameModeName);
	print("----------------------------------\n");
}
Reply
#4

You can only have one main() function in your script, otherwise it's like defining OnPlayerConnect or OnPlayerSpawn twice.
Reply
#5

Okay, so i got rid of main() and this is what i got when i tried to compile.

Код HTML:
C:\Users\Brandon\Desktop\SERVER\pawno\include\dutils.inc(410) : warning 219: local variable "buf" shadows a variable at a preceding level
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(70) : error 055: start of function body without function header
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(73) : error 021: symbol already defined: "printf"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1476) : warning 203: symbol is never used: "buf"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#6

Quote:
Originally Posted by MrPlatinum
Посмотреть сообщение
Okay, so i got rid of main() and this is what i got when i tried to compile.

Код HTML:
C:\Users\Brandon\Desktop\SERVER\pawno\include\dutils.inc(410) : warning 219: local variable "buf" shadows a variable at a preceding level
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(70) : error 055: start of function body without function header
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(73) : error 021: symbol already defined: "printf"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1476) : warning 203: symbol is never used: "buf"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Just change "buf" to "buffer" and try it.
Reply
#7

Код HTML:
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(70) : error 055: start of function body without function header
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(73) : error 021: symbol already defined: "printf"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1476) : warning 203: symbol is never used: "buffer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#8

Show us the lines.
Reply
#9

Код HTML:
native WP_Hash(buffer[], len, const str[]);

{
    new
    	buffer[129];
    printf("hash");
    WP_Hash(buf, sizeof (buf), "The quick brown fox jumps over the lazy dog");
    print(buf);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)