08.03.2014, 15:08
Long time to script so i try to remember a lot things so anyway here is my code... i cant remember whats wrong actually..
errors :
The lines that claims there are errors..(there is no error actually here) :
So what am i actually doing wrong..
pawn Код:
new gCopPlayer[MAX_PLAYERS]; // is this the mistake???
OnGameModeinit callback
gCopPlayer[0] = AddPlayerClass(165, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[1] = AddPlayerClass(166, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[2] = AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[3] = AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[4] = AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[5] = AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[6] = AddPlayerClass(284, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[7] = AddPlayerClass(285, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[8] = AddPlayerClass(286, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[9] = AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[10] = AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[11] = AddPlayerClass(163, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gCopPlayer[12] = AddPlayerClass(164, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
public OnPlayerRequestClass(playerid, classid)
{
if(classid == gCopPlayer[classid])
{
SetPlayerPos(playerid, 293.108734, 182.532150, 1007.171875);
SetPlayerFacingAngle(playerid, 121.455261);
SetPlayerCameraLookAt(playerid, 293.108734, 182.532150, 1007.171875);
SetPlayerCameraPos(playerid, 293.108734 + (10 * floatsin(-121.455261, degrees)), 182.532150 + (10 * floatcos(-121.455261, degrees)), 1007.171875);
}
return 1;
}
pawn Код:
(340) : error 010: invalid function or declaration
(415) : error 025: function heading differs from prototype
(420) : error 025: function heading differs from prototype
pawn Код:
// line 340
public OnPlayerStateChange(playerid, state, oldstate)
{
return 1;
}
//line 415,420
public OnPlayerInteriorChange(playerid, interiorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, keys, oldkeys)
{
return 1;
}