Wieso geht das nicht?

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Wieso geht das nicht=



    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    new auto = GetVehicleModel(GetPlayerVehicleID(playerid));
    if(GetPlayerState(playerid) == pCarLicense)
    {
    if(auto == 400 || auto == 401 || auto == 402 || auto == 404 || auto == 405 || auto == 409 || auto == 410 || auto == 411
    || auto == 412 || auto == 413 || auto == 414 || auto == 415 || auto == 416 || auto == 417 || auto == 418 || auto == 419
    || auto == 420 || auto == 421 || auto == 422 || auto == 423 || auto == 424 || auto == 426 || auto == 429 || auto == 431
    || auto == 434 || auto == 436 || auto == 437 || auto == 438 || auto == 439 || auto == 440 || auto == 442 || auto == 444
    || auto == 445 || auto == 451 || auto == 455 || auto == 456 || auto == 458 || auto == 459 || auto == 466 || auto == 467
    || auto == 470 || auto == 474 || auto == 475 || auto == 477 || auto == 478 || auto == 479 || auto == 480 || auto == 482
    || auto == 483 || auto == 486 || auto == 489 || auto == 490 || auto == 491 || auto == 492 || auto == 494 || auto == 495
    || auto == 496 || auto == 498 || auto == 499 || auto == 500 || auto == 502 || auto == 503 || auto == 504 || auto == 505
    || auto == 506 || auto == 507 || auto == 508 || auto == 516 || auto == 517 || auto == 518 || auto == 525 || auto == 525
    || auto == 527 || auto == 528 || auto == 529 || auto == 531 || auto == 532 || auto == 534 || auto == 534 || auto == 536
    || auto == 539 || auto == 549 || auto == 541 || auto == 542 || auto == 543 || auto == 546 || auto == 547 || auto == 548
    || auto == 550 || auto == 551 || auto == 552 || auto == 554 || auto == 555 || auto == 556 || auto == 557 || auto == 558
    || auto == 559 || auto == 560 || auto == 561 || auto == 562 || auto == 565 || auto == 566 || auto == 567 || auto == 568
    || auto == 573 || auto == 574 || auto == 575 || auto == 576 || auto == 579 || auto == 580 || auto == 582 || auto == 585
    || auto == 587 || auto == 588 || auto == 589 || auto == 596 || auto == 597 || auto == 598 || auto == 599 || auto == 600
    || auto == 601 || auto == 602 || auto == 603 || auto == 604 || auto == 605 || auto == 609 || auto == 432)
    {
    if(PlayerInfo[playerid][pCarLicense] == 0)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,0xFFFF89FF,"Sie besitzen kein Führerschein");
    }
    }
    }



    Hier die Errors




    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(394) : error 017: undefined symbol "SavePlayer"
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(463) : error 017: undefined symbol "SavePlayer"
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(603) : warning 213: tag mismatch
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(630) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(630) : error 004: function "OnPlayerExitVehicle" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(632) : error 079: inconsistent return types (array & non-array)
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(635) : warning 225: unreachable code
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(635) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(635) : error 004: function "OnPlayerStateChange" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(637) : error 079: inconsistent return types (array & non-array)
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(640) : warning 225: unreachable code
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(640) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(640) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(642) : error 079: inconsistent return types (array & non-array)
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(645) : warning 225: unreachable code
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(645) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(645) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(647) : error 079: inconsistent return types (array & non-array)
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(650) : warning 225: unreachable code
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(650) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(650) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(652) : error 079: inconsistent return types (array & non-array)
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(655) : warning 225: unreachable code
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(655) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(655) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(657) : error 079: inconsistent return types (array & non-array)
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(660) : warning 225: unreachable code
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(660) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(660) : error 004: function "OnRconCommand" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(662) : error 079: inconsistent return types (array & non-array)
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(665) : warning 225: unreachable code
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(665) : error 029: invalid expression, assumed zero
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(665) : error 004: function "OnPlayerRequestSpawn" is not implemented
    C:\Users\Adri\Desktop\hilfe\haha\gamemodes\q.pwn(667) : error 079: inconsistent return types (array & non-array)
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    26 Errors.



    bitte um hilfe

  • Versuche es mal so:


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    new auto = GetVehicleModel(GetPlayerVehicleID(playerid));
    if(GetPlayerState(playerid) == pCarLicense)
    {
    if(auto == 400 || auto == 401 || auto == 402 || auto == 404 || auto == 405 || auto == 409 || auto == 410 || auto == 411
    || auto == 412 || auto == 413 || auto == 414 || auto == 415 || auto == 416 || auto == 417 || auto == 418 || auto == 419
    || auto == 420 || auto == 421 || auto == 422 || auto == 423 || auto == 424 || auto == 426 || auto == 429 || auto == 431
    || auto == 434 || auto == 436 || auto == 437 || auto == 438 || auto == 439 || auto == 440 || auto == 442 || auto == 444
    || auto == 445 || auto == 451 || auto == 455 || auto == 456 || auto == 458 || auto == 459 || auto == 466 || auto == 467
    || auto == 470 || auto == 474 || auto == 475 || auto == 477 || auto == 478 || auto == 479 || auto == 480 || auto == 482
    || auto == 483 || auto == 486 || auto == 489 || auto == 490 || auto == 491 || auto == 492 || auto == 494 || auto == 495
    || auto == 496 || auto == 498 || auto == 499 || auto == 500 || auto == 502 || auto == 503 || auto == 504 || auto == 505
    || auto == 506 || auto == 507 || auto == 508 || auto == 516 || auto == 517 || auto == 518 || auto == 525 || auto == 525
    || auto == 527 || auto == 528 || auto == 529 || auto == 531 || auto == 532 || auto == 534 || auto == 534 || auto == 536
    || auto == 539 || auto == 549 || auto == 541 || auto == 542 || auto == 543 || auto == 546 || auto == 547 || auto == 548
    || auto == 550 || auto == 551 || auto == 552 || auto == 554 || auto == 555 || auto == 556 || auto == 557 || auto == 558
    || auto == 559 || auto == 560 || auto == 561 || auto == 562 || auto == 565 || auto == 566 || auto == 567 || auto == 568
    || auto == 573 || auto == 574 || auto == 575 || auto == 576 || auto == 579 || auto == 580 || auto == 582 || auto == 585
    || auto == 587 || auto == 588 || auto == 589 || auto == 596 || auto == 597 || auto == 598 || auto == 599 || auto == 600
    || auto == 601 || auto == 602 || auto == 603 || auto == 604 || auto == 605 || auto == 609 || auto == 432)
    {
    if(PlayerInfo[playerid][pCarLicense] == 0)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,0xFFFF89FF,"Sie besitzen kein Führerschein");
    }
    }
    }
    }


    Du hast 1 } zu wenig gehabt :)

    Sa-mp Spieler since 2006
    Sa-mp Scripter since 2008