Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tout est dans le titre
- Voila l'erreur.
- Merci de pas m'insulter ou pourrir le topic , je débute , c'est peut étre une erreur toute bête mais j'aimerait juste tester ce gamemode
- Merci d'avance
- // STOCK DES COMMANDES POUR LES CONES
- stock CreateCone(Float:x,Float:y,Float:z,Float:Angle)
- {
- for(new i = 0; i < sizeof(ConeInfo); i++)
- {
- if(ConeInfo[i][cCreate] == 0)
- {
- ConeInfo[i][cCreate]=1;
- ConeInfo[i][cX]=x;
- ConeInfo[i][cY]=y;
- ConeInfo[i][cZ]=z-0.3;
- ConeInfo[i][cObject] = CreateDynamicObject(1238, x, y, z-0.7, 0, 0, Angle-90);
- return 1;
- }
- }
- return 0;
- }
- stock DeleteAllCone()
- {
- for(new i = 0; i < sizeof(ConeInfo); i++)
- {
- if(ConeInfo[i][cCreate] == 1)
- {
- ConeInfo[i][cCreate]=0;
- ConeInfo[i][cX]=0.0;
- ConeInfo[i][cY]=0.0;
- ConeInfo[i][cZ]=0.0;
- DestroyDynamicObject(ConeInfo[i][cObject]);
- }
- }
- return 0;
- }
- /stock DeleteClosestCone(playerid)
- {
- for(new i = 0; i < sizeof(ConeInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1.0, ConeInfo[i][cX], ConeInfo[i][cY], ConeInfo[i][cZ]))
- {
- if(ConeInfo[i][cCreate] == 1)
- {
- ConeInfo[i][cCreate]=0;
- ConeInfo[i][cX]=0.0;
- ConeInfo[i][cY]=0.0;
- ConeInfo[i][cZ]=0.0;
- DestroyDynamicObject(ConeInfo[i][cObject]);
- return 1;
- }
- }
- }
- return 0;
- }*/
- stock DeleteClosestCone(playerid)
- {
- (LIGNE 554 ) for(new i = 0; i < sizeof(TCarInfo); i++)
- {
- if(ConeInfo[i][cCreate] == 1)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, ConeInfo[i][cX], ConeInfo[i][cY], ConeInfo[i][cZ]))
- {
- new Name[MAX_PLAYER_NAME], str[128];
- GetPlayerName(playerid, Name, sizeof(Name));
- format(str, sizeof(str), "* %s se penche et ramasse le cône.", Name);
- ProxDetector(9.0, playerid, str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_WHITE, ""green"[Info:]"white" Vous ramassez le cône.");
- ConeInfo[i][cCreate]=0;
- ConeInfo[i][cX]=0.0;
- ConeInfo[i][cY]=0.0;
- ConeInfo[i][cZ]=0.0;
- DestroyDynamicObject(ConeInfo[i][cObject]);
- return 0;
- }//else return SendClientMessage(playerid, COLOR_GREY, ""red"[Erreur:]"grey" Vous n'êtes pas prêts d'une carcasse");
- }
- }
- return 0;
- }
- stock GetClosestVehicle(playerid)
- {
- new Float:x, Float:y, Float:z;
- new Float:dist, Float:closedist=6, closeveh;
- for(new i=1; i < MAX_VEHICLES; i++)
- {
- if(GetVehiclePos(i, x, y, z))
- {
- dist = GetPlayerDistanceFromPoint(playerid, x, y, z);
- if(dist < closedist)
- {
- closedist = dist;
- closeveh = i;
- }
- }
- }
- return closeveh;
- }
- (554) : error 017: undefined symbol "TCarInfo"
- (554) : error 036: empty statement
- (554) : error 017: undefined symbol "i"
- (554) : fatal error 107: too many error messages on one line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement