GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: maxya le 19 Août 2012, 15:19:52
-
Salut,
Alors voila je suis débutant en Pawn je commence à comprendre ce language qui est peu difficile mais j'ai rencontré un problème,Pour m'entrainer a scripter j'ai télécharger le GM de miami RP e j'ai trouver une chose que je ne comprends pas voila le code :
<?php // je fais comme Gilux ^^
enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pMuted,
pExp,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
Radio,
Frequence,
pJailTime,
pMats,
pDrugs,
pLeader,
pMember,
pFMember,
pRank,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pGangKey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pPayDay,
pPayDayHad,
pWatch,
pCrashed,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pMissionNr,
pWarns,
pVirWorld,
pFuel,
pMarried,
pMarriedTo[128],
pFishTool,
pNote1[128],
pNote1s,
pNote2[128],
pNote2s,
pNote3[128],
pNote3s,
pNote4[128],
pNote4s,
pNote5[128],
pNote5s,
pInvWeapon,
pInvAmmo,
pLighter,
pCigarettes,
pRequestingBackup,
pRoadblock,
pMask,
pMaskuse,
pHideNumber,
pSpeaker,
pLocked,
pCash,
//pSQLID,
probbank,
Decoder,
};
Donc voila c'est quoi sa une déclaration de variable massive ou quoi ?
Merci d'avance,
-
ok merci
-
pourquoi dans le tableau il y'as 2 crochet ?
Normalement pour crée un tableau on fais comme sa :
new tableau[7];
-
sa c'est cool ! enfaite c'est comme un tableau de tableau !
Je tiens vraiment a te remercier du fond du coeur .
Une derniére question ^^ (Je suis assoiffé de connaissances) il n'y'aurai pas un liens ou je puisse me documenter sur les variables tel que MAX_PLAYER_NAME et MAX_PLAYERS ?
Merci d'avance,
-
Dommage que le pawn ressemble au C moi je ne code qu'en C++ et en python ^^ . merci pour ton aide et si je trouve une documentation sur les directives de préprocesseur je te k'envoie en PM .
-
Salut.
Pour les véhicules, il y a également MAX_VEHICLES, mais après je n'en connais pas d'autres ;)
-
#define MAX_PLAYER_NAME (24)
#define MAX_PLAYERS (500)
#define MAX_VEHICLES (2000)
#define INVALID_PLAYER_ID (0xFFFF)
#define INVALID_VEHICLE_ID (0xFFFF)
#define NO_TEAM (255)
#define MAX_OBJECTS (1000)
#define INVALID_OBJECT_ID (0xFFFF)
#define MAX_GANG_ZONES (1024)
#define MAX_TEXT_DRAWS (2048)
#define MAX_PLAYER_TEXT_DRAWS (256)
#define MAX_MENUS (128)
#define MAX_3DTEXT_GLOBAL (1024)
#define MAX_3DTEXT_PLAYER (1024)
#define MAX_PICKUPS (4096)
#define INVALID_MENU (0xFF)
#define INVALID_TEXT_DRAW (0xFFFF)
#define INVALID_GANG_ZONE (-1)
#define INVALID_3DTEXT_ID (0xFFFF)
on en apprend beaucoup en ouvrant les includes ;)
-
c'est quel include sa ?