Advertisement
Guest User

Untitled

a guest
May 6th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1.                         new Float:x, Float:y, Float:z;
  2.                         new count = 0;
  3.                         GetPlayerPos(playerid, x, y, z)
  4.                         new File: file = fopen("cars.cfg", io_read);
  5.                         if (file)
  6.                             {
  7.                                 while(fread(file, string))
  8.                                 {
  9.                                     count++;
  10.                                 }
  11.                             //  fwrite(file, "%d,%d,%d,%d,%d,%d,%d,%s,%s,%d,,%d,%d);
  12.                                 CreateVehicle(idveh, x+5, y, z, 82.2873, 0, 1, -1);
  13.                                 format(string, 128, "\r\n %d,%d,%d,%d,82,1,1,Dealership,Test,5000,,0,0", idveh,x,y,z);
  14.                                 fwrite(file, string);
  15.                                 fclose(file);
  16.                             }
  17.                         else
  18.                         {
  19.                             SendClientMessage(playerid,COLOR_RED,"Impossible d'ouvrir le fichier cars.cfg");
  20.                             return 1;
  21.                         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement