Hallo,
Ich habe bei meinem V Befehl diese Errors
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(590) : error 017: undefined symbol "cmd"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(594) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(594) : error 017: undefined symbol "strtok"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(595) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(601) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(603) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(603) : error 017: undefined symbol "strtok"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(604) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(610) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(612) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(612) : error 017: undefined symbol "strtok"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(613) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(619) : error 017: undefined symbol "tmp"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(624) : error 017: undefined symbol "CreatedCars"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(624) : error 017: undefined symbol "CreatedCar"
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(624) : error 029: invalid expression, assumed zero
C:\Users\Lidia\Desktop\Willi\SAMP Server\gamemodes\Selfmade.pwn(624) : fatal error 107: too many error messages on one line
Der Befehl: if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "Verwendung: /veh [autoid] [farbe1] [farbe2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREEN, "Fahrzeug-ID kann nicht unter 400 und über 611 sein!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "Verwendung: /veh [autoid] [farbe1] [farbe2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_YELLOW, "Die Farbe kann nicht unter 0 und über 126 sein!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "Verwendung: /veh [autoid] [farbe1] [farbe2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_YELLOW, "Die Farbe kann nicht unter 0 und über 126 sein!"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = AddStaticVehicleEx(car, X,Y,Z, 0.0, color1, color2, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
format(string, sizeof(string), "Fahrzeug %d wurde gespawned.", carid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}
In Sufu finde ich nichts
Kann mir einer Helfen?
MfG