FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups   RegisterRegister   ProfileProfile  Log in to check your private messagesP.M.  Log inLog in


 Bienvenue Guest 
Bienvenue sur le site de la team KgS             

Adresse du serveur SA-MP:             

                  

dernière version SA:MP 0.3.7 Télécharger             
LSDM GW 0.1

 
Post new topic   Reply to topic    Team KgS Forum Index -> SA-MP -> Scripting SA-MP [Pawn]
Previous topic :: Next topic  

Author Message
ZordLawer
Nouveau
Nouveau

Offline

Joined: 30 Dec 2010
Posts: 25
Point(s): 347,002
Moyenne de points: 13,880.08

PostPosted: Sun 2 Jan - 10:48 (2011)    Post subject: LSDM GW 0.1 Reply with quote

Salut,

Quand j'essaye de compiler mon LSDM, Pawno me sort plein d'erreurs et je ne sais pas les corriger.Je suis juste un débutant dans le script donc je ne sais pas trop comment faire.

Voila les erreurs : : error 029: invalid expression, assumed zero
                           : warning 215: expression has no effect
                           : error 001: expected token: ";", but found "if"
                           : error 017: undefined symbol "gTeam"
                           : fatal error 107: too many error messages on one line


Back to top
Author Message
Publicité






PostPosted: Sun 2 Jan - 10:48 (2011)    Post subject: Publicité

PublicitéSupprimer les publicités ?
Back to top
Author Message
OSC
loup-garou
loup-garou

Offline

Joined: 28 Nov 2010
Posts: 126
Point(s): 915,368
Moyenne de points: 7,264.83

PostPosted: Sun 2 Jan - 14:24 (2011)    Post subject: LSDM GW 0.1 Reply with quote

new gTeam[MAX_PLAYERS];

et après tu fait

#define lenomdetateamici 0

et en dessous tu continue avec 1


Back to top
Author Message
ZordLawer
Nouveau
Nouveau

Offline

Joined: 30 Dec 2010
Posts: 25
Point(s): 347,002
Moyenne de points: 13,880.08

PostPosted: Sun 2 Jan - 18:24 (2011)    Post subject: LSDM GW 0.1 Reply with quote

Ca veux toujour pas me le compiler, j'ai du faire une erreur quelque part.

error 032: array index out of bounds (variable "gTeam")
error 001: expected token: "*then", but found ";"
error 036: empty statement
fatal error 107: too many error messages on one line

Voila les lignes ou Pawno dit qu'il y a des erreurs :
public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    new gTeam[MAX_PLAYERS]; {
    #define GROVESTREET 0
    SetPlayerColor(playerid,vert); //vert
        }
    if gTeam[MAX_PLAYERS]; {
    #define FILLE 1
    SetPlayerColor(playerid,corail); //corail
        }
    if gTeam[MAX_PLAYERS]; {
    #define BALLAS 2
    SetPlayerColor(playerid,violet); //violet
    return 1;
}


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Team KgS Forum Index -> SA-MP -> Scripting SA-MP [Pawn] All times are GMT + 1 Hour
Page 1 of 1
Jump to:  
Xooit.com :: Top Forums
Index | Create a free forum | Free support forum | Free forums directory | Report a violation | Cookies | Charte | Conditions générales d'utilisation
Powered by phpBB © 2001, 2020 phpBB Group

Team KgS © 2010-2016 - copyright inscrit 00049334
mtechnik