Guten Abend liebe Community,
ich hoffe es kann mir jemand helfen, bzw erklären wo genau der Fehler liegt.
Ich möchte den Befehl /veh also zum Auto spawnen ohne Admin System machen.
Aber bei mir kommen jegliche Errors.
if (strcmp("/veh", cmdtext, true, 10) == 0)
{
if(!strlen(strget(cmdtext,3))) return SendClientMessage(playerid, ROT,"Benutze /veh [VEHICLE] [COLOR1] [COLOR2]");
{
new medelid, col1, col2, car;
new Float: FloatX, Float:FloatY, Float:FloatZ, Float:FloatA;
GetPlayerPos(playerid, PosX, PosY, PosX);
GetPlayerFacingAngle(playerid,PosZA);
modelid = strval(strget(cmdtext,1));
col1 = strval(strget(cmdtext,2));
cal2 = strval(strget(cmdtext,3));
car = AddStaticVehicle(modelid,PosX, PosY, PosZ, color1, color2);
PutPlayerInVehicle(playerid,car,0);
}
}
return 0;
}
Und hier die Errors
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(323) : error 017: undefined symbol "strget"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(325) : warning 217: loose indentation
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(329) : error 017: undefined symbol "PosX"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(330) : error 017: undefined symbol "PosZA"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(332) : error 017: undefined symbol "modelid"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(332) : error 017: undefined symbol "strget"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(333) : error 017: undefined symbol "strget"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(334) : error 017: undefined symbol "cal2"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(334) : error 017: undefined symbol "strget"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(336) : error 017: undefined symbol "modelid"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(327) : warning 203: symbol is never used: "FloatA"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(327) : warning 203: symbol is never used: "FloatZ"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(327) : warning 203: symbol is never used: "FloatY"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(327) : warning 203: symbol is never used: "FloatX"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(326) : warning 203: symbol is never used: "col2"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(333) : warning 204: symbol is assigned a value that is never used: "col1"
C:\Users\Findik\Desktop\Selfmade\pawno\Selfmade.pwn(326) : warning 203: symbol is never used: "medelid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Hoffe es kann mir einer helfen.
mfg Neptun