Jump to content

[Erroare] Gamemode Virtual-RPG


AlexRYA

Recommended Posts

 Dc imi da erroarea asta ?

D:\Download\virtual\gamemodes\vx-rp.pwn(38165) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

                                   iMZ7UqN.png

Link to comment
Share on other sites

Ar trebui sa postezi linia dar o sa  iti explica ce e cu eroare. Ai declarat o functie cu forward exemplu

forward IsACop (playerid);

Publicul trebuie sa fie asa

public IsACop (playerid)

Tu probabil ai asa publicul care este gresit

public IsACop (Playerid)

Forwardul trebuie sa fie identic cu publicul

Tu probabil ai pus litera mare, mica sau ai scris inloc de playerid,  targetud sau altceva. 

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

CMD:seatbelt(playerid, params[])
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
    {
        if(Seatbelt[playerid] == 1)
        {
            Seatbelt[playerid] = 0;
            format(szMessage, sizeof(szMessage), "** %s takes down his seatbelt.", playerVariables[playerid][pNormalName]);
            nearByMessage(playerid, COLOR_PURPLE, szMessage);
        }
        else
        {
            Seatbelt[playerid] = 1;
            format(szMessage, sizeof(szMessage), "** %s puts on his seatbelt.", playerVariables[playerid][pNormalName]);
            nearByMessage(playerid, COLOR_PURPLE, szMessage);
        }
    }
    return 1;
}

                                   iMZ7UqN.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.