error problems -
manchestera - 31.10.2011
Hay wondering if anyone can help not worried about the loose indentation just the two errors.
Код:
\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(67) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(67) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(67) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(67) : error 027: invalid character constant
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(79) : error 010: invalid function or declaration
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17033) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17034) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17046) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17051) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17063) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17388) : warning 203: symbol is never used: "WinnerName"
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17388) : warning 203: symbol is never used: "stringwin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
new SFRace[12][3] =
{ //66 line
{-1795.0421, 1103.3732, 45.0752}'
{-1930.9707, 1076.5671, 50.9935},
{-2230.1987, 1076.0427, 55.3577},
{-2590.9111, 1094.3782, 56.4249},
{-2606.9106, 794.0964, 48.8295},
{-2592.1206, 468.0095, 14.2402},
{-2509.6260, 565.3315, 14.2450},
{-2284.7966, 565.8425, 34.7950},
{-2004.1255, 554.2927, 34.7953},
{-1964.4161, 346.3401, 33.8492},
{-1849.9379, 409.4500, 16.7912},
{-1756.7081, 317.2934, 6.8105}
}; //70 line
Many thanks
Re: error problems -
sleepysnowflake - 31.10.2011
new SFRace[12][3] =
{ //66 line
{-1795.0421, 1103.3732, 45.0752},
{-1930.9707, 1076.5671, 50.9935},
{-2230.1987, 1076.0427, 55.3577},
{-2590.9111, 1094.3782, 56.4249},
{-2606.9106, 794.0964, 48.8295},
{-2592.1206, 468.0095, 14.2402},
{-2509.6260, 565.3315, 14.2450},
{-2284.7966, 565.8425, 34.7950},
{-2004.1255, 554.2927, 34.7953},
{-1964.4161, 346.3401, 33.8492},
{-1849.9379, 409.4500, 16.7912},
{-1756.7081, 317.2934, 6.8105}
}; //70 line
Re: error problems -
manchestera - 31.10.2011
what was wrong i cant see anything different XD.
Re: error problems -
sleepysnowflake - 31.10.2011
pawn Код:
{-1795.0421, 1103.3732, 45.0752}'
replaced with
pawn Код:
{-1795.0421, 1103.3732, 45.0752},
Did you even tried ?
Re: error problems -
manchestera - 31.10.2011
Just tried but i got aload of tag miss matches.
Also i like to now what i done wrong so learn.
Код:
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(67) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(67) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(67) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(68) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(68) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(68) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(69) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(69) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(69) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(70) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(70) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(70) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(71) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(71) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(71) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(72) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(72) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(72) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(73) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(73) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(73) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(74) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(74) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(74) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(75) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(75) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(75) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(76) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(76) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(76) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(77) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(77) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(77) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(78) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(78) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(78) : warning 213: tag mismatch
Re: error problems -
sleepysnowflake - 31.10.2011
Can I see the lines ? And you use this: "," not "`" ^^
Re: error problems -
manchestera - 31.10.2011
new SFRace[12][3] =
{ //66 line
{-1795.0421, 1103.3732, 45.0752},//67
{-1930.9707, 1076.5671, 50.9935},//68
{-2230.1987, 1076.0427, 55.3577},//69
{-2590.9111, 1094.3782, 56.4249},//70
{-2606.9106, 794.0964, 48.8295},//71
{-2592.1206, 468.0095, 14.2402},//72
{-2509.6260, 565.3315, 14.2450},//73
{-2284.7966, 565.8425, 34.7950},//74
{-2004.1255, 554.2927, 34.7953},//75
{-1964.4161, 346.3401, 33.8492},//76
{-1849.9379, 409.4500, 16.7912},//77
{-1756.7081, 317.2934, 6.8105} //78
}; //79 line
Re: error problems -
sleepysnowflake - 31.10.2011
Aha.
pawn Код:
new Float:SFRace[12][3] =
{ //66 line
{-1795.0421, 1103.3732, 45.0752},//67
{-1930.9707, 1076.5671, 50.9935},//68
{-2230.1987, 1076.0427, 55.3577},//69
{-2590.9111, 1094.3782, 56.4249},//70
{-2606.9106, 794.0964, 48.8295},//71
{-2592.1206, 468.0095, 14.2402},//72
{-2509.6260, 565.3315, 14.2450},//73
{-2284.7966, 565.8425, 34.7950},//74
{-2004.1255, 554.2927, 34.7953},//75
{-1964.4161, 346.3401, 33.8492},//76
{-1849.9379, 409.4500, 16.7912},//77
{-1756.7081, 317.2934, 6.8105} //78
}; //79 line
Re: error problems -
Wesley221 - 31.10.2011
pawn Код:
enum SFRaceEnum
{
Float:Xx,
Float:Yy,
Float:Zz
}
new SFRace[12][SFRaceEnum] =
{ //66 line
{-1795.0421, 1103.3732, 45.0752},//67
{-1930.9707, 1076.5671, 50.9935},//68
{-2230.1987, 1076.0427, 55.3577},//69
{-2590.9111, 1094.3782, 56.4249},//70
{-2606.9106, 794.0964, 48.8295},//71
{-2592.1206, 468.0095, 14.2402},//72
{-2509.6260, 565.3315, 14.2450},//73
{-2284.7966, 565.8425, 34.7950},//74
{-2004.1255, 554.2927, 34.7953},//75
{-1964.4161, 346.3401, 33.8492},//76
{-1849.9379, 409.4500, 16.7912},//77
{-1756.7081, 317.2934, 6.8105} //78
}; //79 line
And then use it like :
pawn Код:
SetPlayerCheckPoint( playerid, SFRace[0][Xx], SFRace[0][Yy], SFRace[0][Zz], 3.0 );
Edit:
Or use that --^
Re: error problems -
manchestera - 31.10.2011
Sorry for being a pain but i always have trouble with checkpoints ill post everything to do with this and the errors ive got.
Код:
enum SFRaceEnum
{
Float:Xx,
Float:Yy,
Float:Zz
}
new SFRace[12][SFRaceEnum] =
{ //66 line
{-1795.0421, 1103.3732, 45.0752},//67
{-1930.9707, 1076.5671, 50.9935},//68
{-2230.1987, 1076.0427, 55.3577},//69
{-2590.9111, 1094.3782, 56.4249},//70
{-2606.9106, 794.0964, 48.8295},//71
{-2592.1206, 468.0095, 14.2402},//72
{-2509.6260, 565.3315, 14.2450},//73
{-2284.7966, 565.8425, 34.7950},//74
{-2004.1255, 554.2927, 34.7953},//75
{-1964.4161, 346.3401, 33.8492},//76
{-1849.9379, 409.4500, 16.7912},//77
{-1756.7081, 317.2934, 6.8105} //78
}; //79 line
new Player_CheckPoint[MAX_PLAYERS];
new bool:IsRaceRunning = false;
new stringwin[64];
Код:
CMD:sfrace(playerid, p, f[ ] )
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetVehiclePos( GetPlayerVehicleID( playerid ), -1795.0421, 1103.3732, 45.0752);
Player_CheckPoint[i] = 0;
SetPlayerRaceCheckpoint(i,0,SFRace[0][0],SFRace[0][1],SFRace[0][2],SFRace[1][0],SFRace[1][1],SFRace[1][2],9.7); //7753
IsRaceRunning = true;
}
}
return 1;
}
Код:
if(IsRaceRunning == true) { Player_CheckPoint[playerid]++; } //17036 line
if(Player_CheckPoint[playerid] < 11 && IsRaceRunning == true)//17037 line
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,SFRace[Player_CheckPoint[playerid]][0],SFRace[Player_CheckPoint[playerid]][1],SFRace[Player_CheckPoint[playerid]][2],SFRace[Player_CheckPoint[playerid]+1][0],SFRace[Player_CheckPoint[playerid]+1][1],SFRace[Player_CheckPoint[playerid]+1][2],9.7); //17040
return 1;
}
if(Player_CheckPoint[playerid] == 10 && IsRaceRunning == true)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
DisablePlayerRaceCheckpoint(i);
}
new Moneys = 5000 + random( 7000 ),
Score = 20 + random( 20 ),
Cookies = 10 + random( 20 ),
String[ 256 ];
foreach(Player, i)
{
if ( i != playerid )
{
FormMessage( i, -1, ""COL_OGREEN"%s{FFFFFF} Has Finished The Race, and won a prize!", PlayerName2( playerid ) );
}
}
format( String, sizeof String, " ~g~ FINISHED~n~~n~~w~You Finished The Race Well Done!~n~~n~~g~ REWARD!~n~~W~Cash:~g~~h~$%d~n~~w~Score: ~g~~h~%d~n~~w~Cookies: ~g~~h~%d",Moneys, Score, Cookies );
Info( playerid, String,12000);
SetPlayerScore( playerid, GetPlayerScore( playerid ) + Score );
GivePlayerMoney( playerid, Moneys );
}
return 1;
}
Код:
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(7753) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(7753) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(7753) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(7753) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(7753) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(7753) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17036) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17037) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17040) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17040) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17040) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17040) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17040) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17040) : warning 213: tag mismatch
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17043) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17049) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17054) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17066) : warning 217: loose indentation
C:\Users\GTA ONLY\Desktop\The Eclipse V4.8\gamemodes\SW - Copy.pwn(17391) : warning 203: symbol is never used: "stringwin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
19 Warnings.
17391 line isnt there my script finishes at 17390