Szerző Téma: [Help]Segitség 1 error hiba  (Megtekintve 1119 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
[Help]Segitség 1 error hiba
« Dátum: 2011. június 13. - 00:00:53 »
0 Show voters
[pawn]enum pInfo
{
bool:SpawnDance,
Float:SpawnAngle,
SpawnTimer,
Instagib
};
new PlayerInfo[MAX_PLAYERS][pInfo];
//mozgokamera:
#define player_x 2179.3577
#define player_y 1678.0907
#define player_z 11.0469
#define player_angle 89.3243
#define camera_x 2178.8762
#define camera_y 1680.1467
#define camera_z 11.0469
#define moving_speed 50
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, player_x,player_y,player_z);
SetPlayerFacingAngle(playerid, player_angle);
SetPlayerCameraPos(playerid, camera_x,camera_y,camera_z);
SetPlayerCameraLookAt(playerid, player_x,player_y,player_z);
ApplyAnimation(playerid,\"DANCING\",\"DNCE_M_A\",4.0,1,0,0,0,-1);
if (PlayerInfo[playerid][spawnDance]) PlayerInfo[playerid][spawnTimer] = SetTimerEx(\"MoveCamera\", moving_speed, true, \"i\", playerid);
PlayerInfo[playerid][spawnDance] = false;
    return 1;
}
PreloadAnimLib(playerid, animlib[]) ApplyAnimation(playerid,animlib,\"null\",0.0,0,0,0,0,0);
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,tgf);
   PreloadAnimLib(playerid,\"BOMBER\");
      PreloadAnimLib(playerid,\"RAPPING\");
      PreloadAnimLib(playerid,\"SHOP\");
      PreloadAnimLib(playerid,\"BEACH\");
      PreloadAnimLib(playerid,\"SMOKING\");
      PreloadAnimLib(playerid,\"FOOD\");
      PreloadAnimLib(playerid,\"ON_LOOKERS\");
      PreloadAnimLib(playerid,\"DEALER\");
PreloadAnimLib(playerid,\"CRACK\");
PreloadAnimLib(playerid,\"CARRY\");
PreloadAnimLib(playerid,\"COP_AMBIENT\");
PreloadAnimLib(playerid,\"PARK\");
PreloadAnimLib(playerid,\"INT_HOUSE\");
PreloadAnimLib(playerid,\"FOOD\");
PreloadAnimLib(playerid,\"PED\");
GivePlayerMoney(playerid,60000);
SetPlayerColor(playerid,playerColors[random(100)]);
new name[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),\"|-%s (ID:%d){ff0000}feljött a szerora[%d/%d]|-\",name,playerid,PlayerCount, GetMaxPlayers());
SendClientMessageToAll(COLOR_GREEN,string);
    PlayerCount++;
return 1;
}
forward MoveCamera(playerid);
public MoveCamera(playerid)
{
    SetPlayerCameraPos(playerid, player_x - 2 * floatsin(-PlayerInfo[playerid][spawnAngle], degrees), player_y - 10 * floatcos(-PlayerInfo[playerid][spawnAngle], degrees), player_z + 3);
    SetPlayerCameraLookAt(playerid, player_x, player_y, player_z + 0.5);
    PlayerInfo[playerid][spawnAngle] += 0.5;
    if (PlayerInfo[playerid][spawnAngle] >= 360.0)
        PlayerInfo[playerid][spawnAngle] = 0.0;
}
[/pawn] ebbe mi lehet a hiba segits pls

[Help]Segitség 1 error hiba
« Válasz #1 Dátum: 2011. június 13. - 00:14:40 »
0 Show voters
Pontosan mi az az \"egy error hiba\"?

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
[Help]Segitség 1 error hiba
« Válasz #2 Dátum: 2011. június 13. - 08:17:14 »
0 Show voters
[pawn]C:\\Documents and Settings\\Penge\\Asztal\\newStunt.pwn(8) : error 017: undefined symbol \"MAX_PLAYERS\"
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
1 Error.
[/pawn] csak elfelejtettem oda rakni

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal