neuer fail im script, hier ma die zeile
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(strget(cmdtext, 0), "/v", true) == 0);
{
if(!strlen(strget(cmdtext,3))) return SendClientMessage(playerid, Weiß,"Benutzung: /v [ID] [Farbe 1] [Farbe 2]");
{
new modelid, col1, col2, car;
new Float:PosX, Float:PosY, Float:PosZ, Float:PosZA;
GetPlayerPos(playerid, PosX, PosY, PosZ);
GetPlayerFacingAngle(playerid, PosZA);
modelid = strval(strget(cmdtext,1));
col1 = strval(strget(cmdtext,2));
col2 = strval(strget(cmdtext,3));
car = AddStaticVehicle(modelid,PosX, PosY, PosZ, PosZA, col1, col2);
PutPlayerInVehicle(playerid,car,0);
}
return 1;
}
die errors:
C:\Users\test\Desktop\Server\gamemodes\Test.pwn(12) : error 001: expected token: ";", but found "-identifier-"
C:\Users\test\Desktop\Server\gamemodes\Test.pwn(718 : error 012: invalid function call, not a valid address
C:\Users\test\Desktop\Server\gamemodes\Test.pwn(718 : warning 215: expression has no effect
C:\Users\test\Desktop\Server\gamemodes\Test.pwn(718 : warning 215: expression has no effect
C:\Users\test\Desktop\Server\gamemodes\Test.pwn(718 : error 001: expected token: ";", but found ")"
C:\Users\test\Desktop\Server\gamemodes\Test.pwn(718 : error 029: invalid expression, assumed zero
C:\Users\test\Desktop\Server\gamemodes\Test.pwn(718: fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
in dem fall, zeile 3