Errors trying to make a new gang.
#1

Код:
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(1547) : warning 202: number of arguments does not match definition
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2213) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2213) : warning 215: expression has no effect
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2214) : warning 209: function "OnPlayerRequestClass" should return a value
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2215) : error 010: invalid function or declaration
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2220) : error 010: invalid function or declaration
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2502) : error 017: undefined symbol "ATEAM"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2504) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2504) : error 017: undefined symbol "Cancel"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2504) : warning 215: expression has no effect
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2504) : error 001: expected token: ";", but found ")"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2504) : fatal error 107: too many error messages on one line

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


8 Errors.
On lines:
Код:
	
if(gTeam[playerid] == ATEAM && GetPlayerSkin(playerid) == 73)
	{
	 	ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{0000FF}ATEAM'S INFORMATION:","{FFFFFF}Commands: Type /commands for a list of ATEAM'S COMMANDS.\n{FFFFFF}Job: Your job is to run away from the National Guard/Army.\n{FFFFFF}Player Colours: For a list of what the player colors mean, type /pc.\n{FFFFFF}Don't forget to read the /rules of Zone's San Fierro C'N'R!","Ok,"Cancel");
	 	GivePlayerWeapon(playerid,22,700);
	 	GivePlayerWeapon(playerid,31,700);
	 	GivePlayerWeapon(playerid,35,10);
        SetPlayerPos(playerid,-157.1407,1903.2020,18.6546);
        SetPlayerFacingAngle(playerid,275.1121;
	 	SetCameraBehindPlayer(playerid);
	 	HasATEAMRadio[playerid] =1;
	}
Код:
			GameTextForPlayer(playerid, "~g~ATEAM", 3000,5);
		}
		{
			GameTextForPlayer(playerid, "~g~TAXI DRIVER", 3000, 5);
		}
		case 17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48,49,50,51,52,53,54,55,56,57,58,59,60:
		{
			GameTextForPlayer(playerid, "~w~CIVILIAN~n~~r~CHOOSE A JOB WHEN YOU SPAWN", 3000, 5);
		}
	}
	return 1;
}
Код:
	ATEAMZone = GangZoneCreate(164,157.1407,1903.2020,18.6546,275.1121);
Reply
#2

SetPlayerFacingAngle(playerid,275.1121);
Reply
#3

Код:
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(1547) : warning 202: number of arguments does not match definition
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2213) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2215) : warning 209: function "OnPlayerRequestClass" should return a value
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2216) : error 010: invalid function or declaration
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2221) : error 010: invalid function or declaration
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2503) : error 017: undefined symbol "ATEAM"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2505) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2505) : error 017: undefined symbol "Cancel"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2505) : warning 215: expression has no effect
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2505) : error 001: expected token: ";", but found ")"
C:\Users\james\Documents\SFCRRPG\gamemodes\SFCRRPG.pwn(2505) : fatal error 107: too many error messages on one line

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


8 Errors.
Reply
#4

The errros are in other parts of your script...
Reply
#5

The Errors came when i putted the ATEAM Gang + i got dcmd i looked at strcmp tutorial i tried to make it with dcmd by my self. I followed how the others are.
Reply
#6

Show more code.
Reply
#7

WTF is this??

PHP код:
case 17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48,49,50,51,52,53,54,55,56,57,58,59,60
Do it like this:

PHP код:
case 17..60
Wtf is the red thing I marked?

PHP код:
ATEAMZone GangZoneCreate([COLOR="Red"]164[/COLOR],157.1407,1903.2020,18.6546,275.1121); 
Reply
#8

its fixed.
Reply
#9

Quote:
Originally Posted by James_Bourne
Посмотреть сообщение
The Errors came when i putted the ATEAM Gang + i got dcmd i looked at strcmp tutorial i tried to make it with dcmd by my self. I followed how the others are.
Lol, Its not easy as it looks, trust me, Look at a strpcmd tutorial atm, and try again.
Reply
#10

Can u read? its fixed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)