Guten Abend, ich habe ein Problem, dass die ganzen Cars nicht in eine Zeile passen, da sonstein Fehler käme, da sie zu lang wären.
Daher habe ich das so gemacht:
stock Autoss(playerid)
{
new modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
modelid == 400 || //5026
modelid == 401 ||
modelid == 402 ||
modelid == 404 ||
modelid == 405 ||
modelid == 409 ||
modelid == 410 ||
modelid == 411 ||
modelid == 412 ||
modelid == 413 ||
modelid == 414 ||
modelid == 415 ||
modelid == 418 ||
modelid == 419 ||
modelid == 420 ||
modelid == 421 ||
modelid == 422 ||
modelid == 423 ||
modelid == 424 ||
modelid == 426 ||
modelid == 427 ||
modelid == 428 ||
modelid == 429 ||
modelid == 434 ||
modelid == 436 ||
modelid == 438 ||
modelid == 439 ||
modelid == 440 ||
modelid == 441 ||
modelid == 442 ||
modelid == 445 ||
modelid == 451 ||
modelid == 458 ||
modelid == 459 ||
modelid == 466 ||
modelid == 467 ||
modelid == 470 ||
modelid == 474 ||
modelid == 475 ||
modelid == 477 ||
modelid == 478 ||
modelid == 479 ||
modelid == 480 ||
modelid == 482 ||
modelid == 483 ||
modelid == 485 ||
modelid == 486 ||
modelid == 489 ||
modelid == 490 ||
modelid == 491 ||
modelid == 492 ||
modelid == 494 ||
modelid == 495 ||
modelid == 496 ||
modelid == 498 ||
modelid == 499 ||
modelid == 500 ||
modelid == 501 ||
modelid == 502 ||
modelid == 503 ||
modelid == 504 ||
modelid == 505 ||
modelid == 506 ||
modelid == 507 ||
modelid == 508 ||
modelid == 516 ||
modelid == 517 ||
modelid == 518 ||
modelid == 525 ||
modelid == 526 ||
modelid == 527 ||
modelid == 528 ||
modelid == 529 ||
modelid == 531 ||
modelid == 532 ||
modelid == 533 ||
modelid == 534 ||
modelid == 535 ||
modelid == 536 ||
modelid == 539 ||
modelid == 540 ||
modelid == 541 ||
modelid == 542 ||
modelid == 543 ||
modelid == 545 ||
modelid == 546 ||
modelid == 547 ||
modelid == 549 ||
modelid == 550 ||
modelid == 551 ||
modelid == 552 ||
modelid == 554 ||
modelid == 555 ||
modelid == 556 ||
modelid == 557 ||
modelid == 558 ||
modelid == 559 ||
modelid == 560 ||
modelid == 561 ||
modelid == 562 ||
modelid == 565 ||
modelid == 566 ||
modelid == 567 ||
modelid == 568 ||
modelid == 571 ||
modelid == 573 ||
modelid == 575 ||
modelid == 576 ||
modelid == 578 ||
modelid == 579 ||
modelid == 580 ||
modelid == 582 ||
modelid == 585 ||
modelid == 587 ||
modelid == 588 ||
modelid == 589 ||
modelid == 596 ||
modelid == 597 ||
modelid == 598 ||
modelid == 599 ||
modelid == 600 ||
modelid == 601 ||
modelid == 602 ||
modelid == 603 ||
modelid == 604 ||
modelid == 605 ||
modelid == 609) //5152
return 0; //5153
}
und de Errors sind:
C:\Users\***\Desktop\SA_MP\Server-Test\gamemodes\***.pwn(3824) : warning 202: number of arguments does not match definition
C:\Users\***\Desktop\SA_MP\Server-Test\gamemodes\***.pwn(5026 -- 5152) : warning 215: expression has no effect
C:\Users\***\Desktop\SA_MP\Server-Test\gamemodes\***.pwn(5152) : error 001: expected token: ";", but found ")"
C:\Users\***\Desktop\SA_MP\Server-Test\gamemodes\***.pwn(5152) : error 029: invalid expression, assumed zero
C:\Users\***\Desktop\SA_MP\Server-Test\gamemodes\***.pwn(5152 -- 5153) : warning 215: expression has no effect
C:\Users\***\Desktop\SA_MP\Server-Test\gamemodes\***.pwn(5153) : error 001: expected token: ";", but found "return"
C:\Users\***\Desktop\SA_MP\Server-Test\gamemodes\***.pwn(5153) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
else if(Autoss()) // Zeile 3824
{
if(GetPVarInt(playerid,"Autoschein") == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,rot,"Du hast keinen Autoschein!");
}
else
{
}
}
ist der Command
Danke für die HIlfe und Good Night