• 02 Mai 2025, 00:15:57


Auteur Sujet: Probleme faction  (Lu 1185 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne Quentin_Mysterio

  • *
  • Criminel
  • Messages: 36
    • Voir le profil
Probleme faction
« le: 29 Mars 2009, 00:06:59 »
Bon voila j'ai decider de script la faction groove mais quand je compile le library compiler bug :/
En gros il ne repond plus
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
static gTeam[MAX_PLAYERS];


#define MAX_STRING 255
#define CHECKPOINT_NONE 0
#define CHECKPOINT_HOME 12
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA
#define TEAM_CYAN 1
#define TEAM_BLUE 2
#define TEAM_GREEN 3
#define TEAM_ORANGE 4
#define TEAM_COR 5
#define TEAM_BAR 6
#define TEAM_TAT 7
#define TEAM_CUN 8
#define TEAM_STR 9
#define TEAM_HIT 10
#define TEAM_ADMIN 11
#define OBJECTIVE_COLOR 0x64000064
#define TEAM_GREEN_COLOR 0xFFFFFFAA
#define TEAM_JOB_COLOR 0xFFB6C1AA
#define TEAM_HIT_COLOR 0xFFFFFF00
#define TEAM_BLUE_COLOR 0x8D8DFF00
#define COLOR_ADD 0x63FF60AA
#define TEAM_GROVE_COLOR 0x00D900C8
#define TEAM_VAGOS_COLOR 0xFFC801C8
#define TEAM_BALLAS_COLOR 0xD900D3C8
#define TEAM_AZTECAS_COLOR 0x01FCFFC8
#define TEAM_CYAN_COLOR 0xFF8282AA
#define TEAM_ORANGE_COLOR 0xFF830000
#define TEAM_COR_COLOR 0x39393900
#define TEAM_BAR_COLOR 0x00D90000
#define TEAM_TAT_COLOR 0xBDCB9200
#define TEAM_CUN_COLOR 0xD900D300
#define TEAM_STR_COLOR 0x01FCFF00
#define TEAM_ADMIN_COLOR 0x00808000
#define COLOR_INVIS 0xAFAFAF00
#define COLOR_SPEC 0xBFC0C200
#define TEAM_GROOVE 0


public OnPlayerRequestClass(playerid, classid)

{
     //-------------------------------GROOVE
    if(classid == 0)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid, -1298.9540,2519.3376,87.2696);
    SetPlayerFacingAngle(playerid,190);
    SetPlayerCameraPos(playerid, -1297.5790,2514.3801,87.0745);
    SetPlayerCameraLookAt(playerid, -1298.9540,2519.3376,87.2696);

    }

{
new string[128];
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
  if (classid == 1)
{
format(string, sizeof(string), "~y~> ~p~Police Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 2)
{
format(string, sizeof(string), "~y~> ~p~FBI/ATF Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 3)
{
format(string, sizeof(string), "~y~> ~p~National Guard General ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 4)
{
format(string, sizeof(string), "~y~> ~p~Fire/Ambulance Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 5)
{
format(string, sizeof(string), "~y~> ~p~La Cosa Nostra Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 6)
{
format(string, sizeof(string), "~y~> ~p~Triade Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 7)
{
format(string, sizeof(string), "~y~> ~p~Mayor ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 8)
{
format(string, sizeof(string), "~y~> ~p~Hitman Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 9)
{
format(string, sizeof(string), "~y~> ~p~News Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 10)
{
format(string, sizeof(string), "~y~> ~p~Taxi Cab Company Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 11)
{
format(string, sizeof(string), "~y~> ~p~License Faction Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~y~> ~g~Civilian ~y~<");
GameTextForPlayer(playerid,string,3500,6);
}
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}



public OnPlayerSpawn(playerid)

if(gTeam[playerid] == TEAM_GROOVE)
   {
   SetPlayerColor(playerid,COLOR_GREEN);
   SetPlayerPos(playerid, X, Y, Z);
   }

Merci d'avance pour votre aide :)
« Modifié: 29 Mars 2009, 00:19:37 par Quentin_Mysterio »

Hors ligne MrFredo

  • *
  • Grand Banditisme
  • Scripteur PHP/PAWN
  • Messages: 953
    • Voir le profil
    • GTA-Hosting
Re : Probleme faction
« Réponse #1 le: 29 Mars 2009, 00:39:25 »
Tu voit pas comme un probleme dans ce bout de code?

Code: (pawn) [Sélectionner]
    SetPlayerCameraLookAt(playerid, -1298.9540,2519.3376,87.2696);

    }

{
new string[128];
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
  if (classid == 1)

Allait un indice c'est un blem d'accolade XD

Edit:

J'ai reperer qu'il te manque des accolade dans ta callback OnPlayerSpawn plus particulierement l'accolade de debut de callback et de fin de callback si tu nous a montrer la callback en entier

Hors ligne Quentin_Mysterio

  • *
  • Criminel
  • Messages: 36
    • Voir le profil
Re : Probleme faction
« Réponse #2 le: 29 Mars 2009, 01:03:13 »
Je poste la Callback en entier :)

Desoler ce post a bug et tout ne c'est pas afficher car le message était trop long :/

Double post
Aprés avoir modifier les accolades voila les erreurs mais le compiler ne bug plus !!

C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1716) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1741) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1761) : error 004: function "SetPlayerCriminal" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1766) : error 004: function "SetPlayerCriminal" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1830) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1834) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1846) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1850) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1854) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1858) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1862) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1866) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1870) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1882) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1886) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1890) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1894) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1898) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1910) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1914) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1918) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1930) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(1934) : error 004: function "PlayerToPoint" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(2180) : error 004: function "SendIRCMessage" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(2202) : error 004: function "SendIRCMessage" is not implemented
C:\Program Files\Gta san andreas\Serveur samp\gamemodes\gf.pwn(2214) : error 004: function "SaveCK" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
« Modifié: 29 Mars 2009, 01:08:27 par Quentin_Mysterio »

Hors ligne MrFredo

  • *
  • Grand Banditisme
  • Scripteur PHP/PAWN
  • Messages: 953
    • Voir le profil
    • GTA-Hosting
Re : Probleme faction
« Réponse #3 le: 29 Mars 2009, 01:11:14 »
Vu le nombre d'erreur tu doit encore avoir un blem d'accolade quelque part

Hors ligne Quentin_Mysterio

  • *
  • Criminel
  • Messages: 36
    • Voir le profil
Re : Probleme faction
« Réponse #4 le: 29 Mars 2009, 01:18:38 »
Mwarf font chier ces petites betes d'accollades c'est petit et c'est un erreur bete et casi invisible ;)
Mais je sais pas comment trouver l'accolade qui a un probleme dans les 30 000lignes ;)
Sinon je prend ton msn et on voit sa ^^
« Modifié: 29 Mars 2009, 01:25:37 par Quentin_Mysterio »

Hors ligne cristab

  • *
  • Messages: 8379
    • Voir le profil
Re : Probleme faction
« Réponse #5 le: 29 Mars 2009, 10:36:47 »
omg cherche un peu a l'endroit ou tu as modifier scripter en pawno c'est etre aussi un peu patient
pas d'aide en PM, vous êtes sur un forum est il me semble que vous êtes la pour avoir de l'aide donc pourquoi MP une seul personne qui ne vous répondra pas alors qu'il y a plein de membre ici

Hors ligne Quentin_Mysterio

  • *
  • Criminel
  • Messages: 36
    • Voir le profil
Re : Probleme faction
« Réponse #6 le: 29 Mars 2009, 11:03:06 »
En faite je vais le rescripter et je vous dit quoi ^^
Merci de votre aide :)