GTAvision.com - Forum - Grand Theft Auto News, Downloads, Community and more...

Position: Grand Theft Auto: San Andreas » Multiplayer » Problem mit cmd » Druckansicht
sebihunter, 05.06.2008, 20:41
Hallo ich habe ein Problem mit diesem CMD


Wenn ich nur /bestellung eingebe funktioniert alles. es erscheint der Benutze text
Wenn ich aber zb /bestellung 411 eingebe kommt nur Unknown command
Ich bedanke mich schon im Vorraus für die Hilfe

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
if(strcmp(cmdtext, "/bestellung", true)==0 && gTeam[playerid] == TEAM_AUTOHAUS){

new tmp[256];
new modelid;

       tmp = strtok(cmd, idx);
      if(!strlen(tmp)) {
         SendClientMessage(playerid, COLOR_WHITE, "Benutze: /bestellung [modelid]");
         return 1;
      }
      modelid = strval(tmp);
      

      SendClientMessage(playerid,0xFFFFFFFF,"Auto gespeichert.");
      for(new count;count<MAX_VEHICLES;count++){
        format(string, sizeof(string),"vehicle_%d.sav",count); //Läuft von 1-***, nicth nach vehicle
id
         //format(string, sizeof(string),"vehicle_%d.sav",vehicleid); //nennt die datei wie die vehi
cleid
         if(!dini_Exists(string)){
            dini_Create(string);
            dini_IntSet(string,"model",modelid);
            dini_FloatSet(string,"x",(2778.2478));
            dini_FloatSet(string,"y",(-2437.1582));
            dini_FloatSet(string,"z",(13.3631));
            dini_FloatSet(string,"a",(91.5577));
            count = MAX_VEHICLES;
            CreateVehicle(modelid,2778.2478,-2437.1582,13.3631,91.5577,0,0,300000);

  }
}
   return 1;
}


btw
Wenn dieser CMD funktioniert kommt ne Beta des scriptes als download
sebihunter, 06.06.2008, 23:44
Kann geclosed werden, hab Fehler gefixt
GTAvision.com :: Forumregeln :: FAQ :: Impressum :: Kontakt :: RDRvision.com :: LANOIREvision.com :: MaxPayneVision.com
NetVisionWork.NET
.: © 2006-2014 by GTAvision.com :.

Rockstar GamesTake-Two Interactive Deutschland

Free Grand Theft Auto Downloads