Compiling Error
#1

i m got this error when i compiling

Код:
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(18384) : error 010: invalid function or declaration
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(18385) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(19394) : warning 217: loose indentation
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(19398) : warning 217: loose indentation
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(24095) : warning 202: number of arguments does not match definition
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(29369) : error 001: expected token: "-identifier-", but found "-string-"
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(29370) : error 035: argument type mismatch (argument 4)
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(32345) : warning 202: number of arguments does not match definition
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(32345) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Код:
CMD:cstats( playerid, params[ ] )
{
	new Player;
	if ( sscanf( params, "u", Player ) )
	    return SendClientMessage( playerid, COLOR_ULTRARED, "USAGE: /cstats [PlayerID]" );

	if ( !IsPlayerConnected( Player ) )
	    return SendError( playerid, "Player is not connected !" );

	if ( PlayerInfo[ Player ][ ID ] == 0 )
	    return SendError( playerid, "Player is not in any clan !" );

	new H, M, S;   ====> line 29369
    TotalClanTime( Player, H, M, S );
	format( gsString, 512, "\t\t{FF0000}Player Clan Stats:\n\n\
	                        {00FF00}> Clan: {FFFF00}%s\n\
	                        {00FF00}> Points made: {FFFF00}%d\n\
	                        {00FF00}> Deaths: {FFFF00}%d\n", PlayerInfo[ Player ][ Clan ], PlayerInfo[ Player ][ c_points ], PlayerInfo[ Player ][ c_deaths ] );
	format( gsString, 512, "%s{00FF00}> Joined in clan: {FFFF00}%s\n\
							{00FF00}> Clan Time: {FFFF00}%d:%d:%d\n\n\
							{FFFFFF}Use {FF0000}/cstats [PlayerID] {FFFFFF}to see other player clan stats.", gsString, PlayerInfo[ Player ][ JoinedInClan ], H, M, S );
	ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, "{FFFFFF}Stats", gsString, "Ok", "" );
	return 1;
}
And line 18384

Код:
stock RGBA( R, G, B, A ) ===> line 18384
	return ( R * 16777216 ) + ( G * 65536 ) + ( B * 256 ) + A ;
Pleaz help
Reply
#2

Help Pleaz !!
Reply
#3

some Bugs fixed and now i have got 2 error

Pleaz help
Код:
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(24087) : warning 202: number of arguments does not match definition
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(29361) : error 001: expected token: "-identifier-", but found "-string-"
C:\Users\crввzя\Desktop\New Serv\gamemodes\NES.pwn(29362) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Line:
Код:
CMD:cstats( playerid, params[ ] )
{
	new Player;
	if ( sscanf( params, "u", Player ) )
	    return SendClientMessage( playerid, COLOR_ULTRARED, "USAGE: /cstats [PlayerID]" );

	if ( !IsPlayerConnected( Player ) )
	    return SendError( playerid, "Player is not connected !" );

	if ( PlayerInfo[ Player ][ ID ] == 0 )
	    return SendError( playerid, "Player is not in any clan !" );

	new H, M, S; // this is line 29361
    TotalClanTime( Player, H, M, S );
	format( gsString, 512, "\t\t{FF0000}Player Clan Stats:\n\n\
	                        {00FF00}> Clan: {FFFF00}%s\n\
	                        {00FF00}> Points made: {FFFF00}%d\n\
	                        {00FF00}> Deaths: {FFFF00}%d\n", PlayerInfo[ Player ][ Clan ], PlayerInfo[ Player ][ c_points ], PlayerInfo[ Player ][ c_deaths ] );
	format( gsString, 512, "%s{00FF00}> Joined in clan: {FFFF00}%s\n\
							{00FF00}> Clan Time: {FFFF00}%d:%d:%d\n\n\
							{FFFFFF}Use {FF0000}/cstats [PlayerID] {FFFFFF}to see other player clan stats.", gsString, PlayerInfo[ Player ][ JoinedInClan ], H, M, S );
	ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, "{FFFFFF}Stats", gsString, "Ok", "" );
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)