Jump to content

Question

Posted
C:\Documents and Settings\cata\Desktop\bar.pwn(254) : warning 217: loose indentation
C:\Documents and Settings\cata\Desktop\bar.pwn(260) : error 017: undefined symbol "pickupid"
C:\Documents and Settings\cata\Desktop\bar.pwn(269) : error 017: undefined symbol "pickupid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Erorile astea chear nu inteleg dc au aparut:(

4 answers to this question

Recommended Posts

Posted

LaZ" post="67441" timestamp="1303205415"]

Nu iti este indentat scriptul, compilerul nu-ti recunoaste variabila pickupid.

AM INTELES TOT :)) IMI poti spune mai explicit
Posted

AM INTELES TOT :)) IMI poti spune mai explicit

La prima eroare: Trebuie sa aliniezi codurile, asta a zis si LaZ, nu e vina lui ca nu intelegi.

La a 2-a si a 3-a eroare: Codul ala trebuie pus la OnPlayerPickUpPickup,

Posted

AM INTELES TOT :)) IMI poti spune mai explicit

[pawn]

public OnPlayerPickupPickUp(playerid, pickupid)

{

    if (pickupid == /*variabila care ai folosit-o pentru a crea pickup-ul*/)

    {

        Ban(playerid);

    }

    return 1;

}

[/pawn]

Un exemplu extrem de primitiv.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.