fatal error 107: too many error messages on one line
#1

pawn.pwn(10157) : error 017: undefined symbol "Check"
pawn.pwn(10157) : warning 215: expression has no effect
pawn.pwn(10157) : error 001: expected token: ";", but found "]"
pawn.pwn(10157) : error 029: invalid expression, assumed zero
pawn.pwn(10157) : fatal error 107: too many error messages on one line

10157 line:
Code:
sscanf(params, "si",Check[0], wheelid);
Reply
#2

sscanf(params, "si",Check[0], wheelid)

It should work.Good luck
Reply
#3

Quote:
Originally Posted by cs_waller
View Post
sscanf(params, "si",Check[0], wheelid)

It should work.Good luck
You posted exactly the same !!!

You need to define it.
pawn Code:
new Check[ /* value_here */ ];
Also, on sscanf the "s" specifier should have the value there too.
pawn Code:
// Example:
new reason[ 64 ];
if( sscanf( params, "s[64]", reason ) ) ...
Reply
#4

Quote:
Originally Posted by Dwane
View Post
You posted exactly the same !!!

You need to define it.
pawn Code:
new Check[ /* value_here */ ];
Also, on sscanf the "s" specifier should have the value there too.
pawn Code:
// Example:
new reason[ 64 ];
if( sscanf( params, "s[64]", reason ) ) ...
Lolz I just removed ; from his code
Reply
#5

oh lol I failed hard! xD
It was from the studying (4 hours maths )
Sorry, dude
Reply
#6

No problem
Reply
#7

deleted
Reply
#8

pawn Code:
if ( model == 565 )
How hard could it possibly be to figure that out ...
Reply
#9

pwn(194) : error 010: invalid function or declaration
.pwn(196) : error 029: invalid expression, assumed zero
.pwn(196) : warning 215: expression has no effect
.pwn(198 ) : error 029: invalid expression, assumed zero
.pwn(198 ) : warning 215: expression has no effect
.pwn(199) : error 029: invalid expression, assumed zero
.pwn(199) : warning 215: expression has no effect
.pwn(200) : error 029: invalid expression, assumed zero
.pwn(200) : warning 215: expression has no effect
.pwn(202) : error 017: undefined symbol "SetPlayerClass"
.pwn(203) : error 029: invalid expression, assumed zero
.pwn(203) : error 001: expected token: "]", but found ";"
.pwn(205) : error 029: invalid expression, assumed zero
.pwn(209) : error 029: invalid expression, assumed zero
.pwn(209) : warning 215: expression has no effect
.pwn(209) : error 001: expected token: ";", but found ")"
.pwn(209) : error 029: invalid expression, assumed zero
.pwn(209) : fatal error 107: too many error messages on one line

public OnPlayerRequestClass(playerid, classid)
{
Killed[playerid] = -1;

TextDrawHideForPlayer(playerid, rules0;
TextDrawHideForPlayer(playerid, rules1;
TextDrawHideForPlayer(playerid, rules2;
//-------------------------------------
SetPlayerClass(playerid, classid)
gPlayerClass[playerid] = classid;

switch (classid)
{
case 0:
{
TextDrawShowForPlayer(playerid, HOMELESS0);
TextDrawShowForPlayer(playerid, HOMELESS1);
//hide
TextDrawHideForPlayer(playerid, army0);
TextDrawHideForPlayer(playerid, army1);
TextDrawHideForPlayer(playerid, BEGAL0);
TextDrawHideForPlayer(playerid, BEGAL1);
SetPlayerPos(playerid, -2112.2437,176.7923,35.3929);
SetPlayerFacingAngle(playerid,1);
SetPlayerCameraPos(playerid, -2112.2803,181.6424,36.3327);
SetPlayerCameraLookAt(playerid, -2112.2437,176.7923,35.3929);
}
case 1:
{
//BEGAL
TextDrawShowForPlayer(playerid, BEGAL0);
TextDrawShowForPlayer(playerid, BEGAL1);
//hide
TextDrawHideForPlayer(playerid, HOMELESS0);
TextDrawHideForPlayer(playerid, HOMELESS1);
TextDrawHideForPlayer(playerid, SWAT0);
TextDrawHideForPlayer(playerid, SWAT1);
SetPlayerPos(playerid, -2716.8499,1434.0413,7.1875);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid, -2717.1458,1438.8533,8.3975);
SetPlayerCameraLookAt(playerid, -2716.8499,1434.0413,7.1875);
}
case 2:
{
//SWAT
TextDrawShowForPlayer(playerid, SWAT0);
TextDrawShowForPlayer(playerid, SWAT1);
//hide
TextDrawHideForPlayer(playerid, BEGAL0);
TextDrawHideForPlayer(playerid, BEGAL1);
TextDrawHideForPlayer(playerid, MEDIC0);
TextDrawHideForPlayer(playerid, MEDIC1);
SetPlayerPos(playerid, -1600.3812,737.4028,-5.2422);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid, -1600.5311,741.8755,-4.1332);
SetPlayerCameraLookAt(playerid, -1600.3812,737.4028,-5.2422);
}
case 3:
{
//MEDIC
TextDrawShowForPlayer(playerid, MEDIC0);
TextDrawShowForPlayer(playerid, MEDIC1);
//hide
TextDrawHideForPlayer(playerid, SWAT0);
TextDrawHideForPlayer(playerid, SWAT1);
TextDrawHideForPlayer(playerid, DOLLY0);
TextDrawHideForPlayer(playerid, DOLLY1);
SetPlayerPos(playerid, -2613.8987,598.3188,14.4531);
SetPlayerFacingAngle(playerid,180);
SetPlayerCameraPos(playerid, -2613.8223,593.5840,15.5394);
SetPlayerCameraLookAt(playerid, -2613.8987,598.3188,14.4531);
}
case 4:
{
//dolly
TextDrawShowForPlayer(playerid, DOLLY0);
TextDrawShowForPlayer(playerid, DOLLY1);

//hide
TextDrawHideForPlayer(playerid, MEDIC0);
TextDrawHideForPlayer(playerid, MEDIC1);
TextDrawHideForPlayer(playerid, HOMELESS0);
TextDrawHideForPlayer(playerid, HOMELESS1);
SetPlayerPos(playerid, -2716.8499,1434.0413,7.1875);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid, -2717.1458,1438.8533,8.3975);
SetPlayerCameraLookAt(playerid, -2716.8499,1434.0413,7.1875);
}

}
return 1;
}

Help!
Reply
#10

Quote:
Originally Posted by UrfanHadi
View Post
pwn(194) : error 010: invalid function or declaration
.pwn(196) : error 029: invalid expression, assumed zero
.pwn(196) : warning 215: expression has no effect
.pwn(198 ) : error 029: invalid expression, assumed zero
.pwn(198 ) : warning 215: expression has no effect
.pwn(199) : error 029: invalid expression, assumed zero
.pwn(199) : warning 215: expression has no effect
.pwn(200) : error 029: invalid expression, assumed zero
.pwn(200) : warning 215: expression has no effect
.pwn(202) : error 017: undefined symbol "SetPlayerClass"
.pwn(203) : error 029: invalid expression, assumed zero
.pwn(203) : error 001: expected token: "]", but found ";"
.pwn(205) : error 029: invalid expression, assumed zero
.pwn(209) : error 029: invalid expression, assumed zero
.pwn(209) : warning 215: expression has no effect
.pwn(209) : error 001: expected token: ";", but found ")"
.pwn(209) : error 029: invalid expression, assumed zero
.pwn(209) : fatal error 107: too many error messages on one line

public OnPlayerRequestClass(playerid, classid)
{
Killed[playerid] = -1;

TextDrawHideForPlayer(playerid, rules0;
TextDrawHideForPlayer(playerid, rules1;
TextDrawHideForPlayer(playerid, rules2;
//-------------------------------------
SetPlayerClass(playerid, classid)
gPlayerClass[playerid] = classid;

switch (classid)
{
case 0:
{
TextDrawShowForPlayer(playerid, HOMELESS0);
TextDrawShowForPlayer(playerid, HOMELESS1);
//hide
TextDrawHideForPlayer(playerid, army0);
TextDrawHideForPlayer(playerid, army1);
TextDrawHideForPlayer(playerid, BEGAL0);
TextDrawHideForPlayer(playerid, BEGAL1);
SetPlayerPos(playerid, -2112.2437,176.7923,35.3929);
SetPlayerFacingAngle(playerid,1);
SetPlayerCameraPos(playerid, -2112.2803,181.6424,36.3327);
SetPlayerCameraLookAt(playerid, -2112.2437,176.7923,35.3929);
}
case 1:
{
//BEGAL
TextDrawShowForPlayer(playerid, BEGAL0);
TextDrawShowForPlayer(playerid, BEGAL1);
//hide
TextDrawHideForPlayer(playerid, HOMELESS0);
TextDrawHideForPlayer(playerid, HOMELESS1);
TextDrawHideForPlayer(playerid, SWAT0);
TextDrawHideForPlayer(playerid, SWAT1);
SetPlayerPos(playerid, -2716.8499,1434.0413,7.1875);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid, -2717.1458,1438.8533,8.3975);
SetPlayerCameraLookAt(playerid, -2716.8499,1434.0413,7.1875);
}
case 2:
{
//SWAT
TextDrawShowForPlayer(playerid, SWAT0);
TextDrawShowForPlayer(playerid, SWAT1);
//hide
TextDrawHideForPlayer(playerid, BEGAL0);
TextDrawHideForPlayer(playerid, BEGAL1);
TextDrawHideForPlayer(playerid, MEDIC0);
TextDrawHideForPlayer(playerid, MEDIC1);
SetPlayerPos(playerid, -1600.3812,737.4028,-5.2422);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid, -1600.5311,741.8755,-4.1332);
SetPlayerCameraLookAt(playerid, -1600.3812,737.4028,-5.2422);
}
case 3:
{
//MEDIC
TextDrawShowForPlayer(playerid, MEDIC0);
TextDrawShowForPlayer(playerid, MEDIC1);
//hide
TextDrawHideForPlayer(playerid, SWAT0);
TextDrawHideForPlayer(playerid, SWAT1);
TextDrawHideForPlayer(playerid, DOLLY0);
TextDrawHideForPlayer(playerid, DOLLY1);
SetPlayerPos(playerid, -2613.8987,598.3188,14.4531);
SetPlayerFacingAngle(playerid,180);
SetPlayerCameraPos(playerid, -2613.8223,593.5840,15.5394);
SetPlayerCameraLookAt(playerid, -2613.8987,598.3188,14.4531);
}
case 4:
{
//dolly
TextDrawShowForPlayer(playerid, DOLLY0);
TextDrawShowForPlayer(playerid, DOLLY1);

//hide
TextDrawHideForPlayer(playerid, MEDIC0);
TextDrawHideForPlayer(playerid, MEDIC1);
TextDrawHideForPlayer(playerid, HOMELESS0);
TextDrawHideForPlayer(playerid, HOMELESS1);
SetPlayerPos(playerid, -2716.8499,1434.0413,7.1875);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid, -2717.1458,1438.8533,8.3975);
SetPlayerCameraLookAt(playerid, -2716.8499,1434.0413,7.1875);
}

}
return 1;
}

Help!
It would be better if you make your own thread rather than bumping a 3-year-old topic.
Go to: http://forum.sa-mp.com/forumdisplay.php?f=12 - click on that "NEW THREAD" button and continue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)