Advertisement
Guest User

xxssx

a guest
Jun 30th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.65 KB | None | 0 0
  1. Tout est dans le titre
  2. Voila l'erreur.
  3. 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
  4. Merci d'avance
  5.  
  6.  
  7.  
  8.  
  9. // STOCK DES COMMANDES POUR LES CONES
  10. stock CreateCone(Float:x,Float:y,Float:z,Float:Angle)
  11. {
  12. for(new i = 0; i < sizeof(ConeInfo); i++)
  13.   {
  14.   if(ConeInfo[i][cCreate] == 0)
  15.   {
  16. ConeInfo[i][cCreate]=1;
  17. ConeInfo[i][cX]=x;
  18. ConeInfo[i][cY]=y;
  19. ConeInfo[i][cZ]=z-0.3;
  20. ConeInfo[i][cObject] = CreateDynamicObject(1238, x, y, z-0.7, 0, 0, Angle-90);
  21.   return 1;
  22.   }
  23.   }
  24.   return 0;
  25. }
  26.  
  27. stock DeleteAllCone()
  28. {
  29. for(new i = 0; i < sizeof(ConeInfo); i++)
  30.   {
  31.   if(ConeInfo[i][cCreate] == 1)
  32.   {
  33.   ConeInfo[i][cCreate]=0;
  34. ConeInfo[i][cX]=0.0;
  35. ConeInfo[i][cY]=0.0;
  36. ConeInfo[i][cZ]=0.0;
  37. DestroyDynamicObject(ConeInfo[i][cObject]);
  38.   }
  39. }
  40. return 0;
  41. }
  42.  
  43. /stock DeleteClosestCone(playerid)
  44. {
  45. for(new i = 0; i < sizeof(ConeInfo); i++)
  46.   {
  47.   if(IsPlayerInRangeOfPoint(playerid, 1.0, ConeInfo[i][cX], ConeInfo[i][cY], ConeInfo[i][cZ]))
  48. {
  49.   if(ConeInfo[i][cCreate] == 1)
  50. {
  51. ConeInfo[i][cCreate]=0;
  52. ConeInfo[i][cX]=0.0;
  53. ConeInfo[i][cY]=0.0;
  54. ConeInfo[i][cZ]=0.0;
  55. DestroyDynamicObject(ConeInfo[i][cObject]);
  56. return 1;
  57.   }
  58.   }
  59.   }
  60. return 0;
  61. }*/
  62. stock DeleteClosestCone(playerid)
  63. {
  64. (LIGNE 554 ) for(new i = 0; i < sizeof(TCarInfo); i++)
  65. {
  66.   if(ConeInfo[i][cCreate] == 1)
  67.   {
  68. if(IsPlayerInRangeOfPoint(playerid, 2.0, ConeInfo[i][cX], ConeInfo[i][cY], ConeInfo[i][cZ]))
  69. {
  70. new Name[MAX_PLAYER_NAME], str[128];
  71. GetPlayerName(playerid, Name, sizeof(Name));
  72. format(str, sizeof(str), "* %s se penche et ramasse le cône.", Name);
  73. ProxDetector(9.0, playerid, str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  74.   SendClientMessage(playerid, COLOR_WHITE, ""green"[Info:]"white" Vous ramassez le cône.");
  75. ConeInfo[i][cCreate]=0;
  76. ConeInfo[i][cX]=0.0;
  77.  ConeInfo[i][cY]=0.0;
  78.  ConeInfo[i][cZ]=0.0;
  79.   DestroyDynamicObject(ConeInfo[i][cObject]);
  80.   return 0;
  81. }//else return SendClientMessage(playerid, COLOR_GREY, ""red"[Erreur:]"grey" Vous n'êtes pas prêts d'une carcasse");
  82.   }
  83.  }
  84. return 0;
  85. }
  86. stock GetClosestVehicle(playerid)
  87. {
  88. new Float:x, Float:y, Float:z;
  89. new Float:dist, Float:closedist=6, closeveh;
  90. for(new i=1; i < MAX_VEHICLES; i++)
  91. {
  92. if(GetVehiclePos(i, x, y, z))
  93. {
  94. dist = GetPlayerDistanceFromPoint(playerid, x, y, z);
  95. if(dist < closedist)
  96. {
  97. closedist = dist;
  98. closeveh = i;
  99. }
  100. }
  101. }
  102. return closeveh;
  103. }
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. (554) : error 017: undefined symbol "TCarInfo"
  114. (554) : error 036: empty statement
  115. (554) : error 017: undefined symbol "i"
  116. (554) : fatal error 107: too many error messages on one line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement