Fix this error please.
#1

Here, What is this error and how can i fix it?

Код:
C:\Users\Hadjinoor-PC\Desktop\SAMP Community Training GM\gamemodes\DM.pwn(387) : warning 213: tag mismatch
Reply
#2

Post code please
Reply
#3

Quote:
Originally Posted by iCurse
Посмотреть сообщение
Here, What is this error and how can i fix it?

Код:
C:\Users\Hadjinoor-PC\Desktop\SAMP Community Training GM\gamemodes\DM.pwn(387) : warning 213: tag mismatch
Line 387 has a function that's being called with the incorrect parameters.

Paste lines 385-389.


Check this for further info... Using the incorrect float/int/string combos will cause this.

https://sampforum.blast.hk/showthread.php?tid=369714
Reply
#4

This means you're passing a wrong type of variable in a function on line 387.
If a certain function requires a string as one of its parameters, you can't pass an integer or float.

Likewise if a function requires an integer, you can't pass a string or float. That's what's causing the problem.

Quote:

Line 387 has a function that's being called with the incorrect number of parameters.

No it does not. That would give you warning 202: number of arguments does not match definition
Reply
#5

Quote:
Originally Posted by Schneider
Посмотреть сообщение
No it does not. That would give you warning 202: number of arguments does not match definition
That's why I edited the reply, also enclosing a similar thread with that same statement that you'd made, before you posted that edit adding in the misquote.
Reply
#6

I think here is where the problem is happening

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    if(playerid == RegisterPassword[playerid])
        ShowPlayerDialog(playerid, dialog_register_1, DIALOG_STYLE_PASSWORD, "Please Enter a Password", "Please provide a strong password below.", "Continue", "Cancel");
    return 1;
}
Reply
#7

Is that lines 385-389?
Reply
#8

385 - 387
Reply
#9

Show me the line of the error.

Edit:

How do you guarantee that i declared variable correctly ?.

pawn Код:
new PlayerText:RegisterPassword[MAX_PLAYERS];//

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == RegisterPassword[playerid])
    {
        ShowPlayerDialog(playerid, dialog_register_1, DIALOG_STYLE_PASSWORD, "Please Enter A Password", "Please provide a strong password below:", "Continue", "Cancel");
    }
    return true;
}
Reply
#10

Hmm, sir i transferred the the to another thingy.

Here but it occured another problem.

Код:
DM.pwn(388) : error 025: function heading differs from prototype
DM.pwn(389) : warning 213: tag mismatch
The script.

pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, playertext:playertextid){
    if(playertextid == RegisterPassword[playerid]){
        ShowPlayerDialog(playerid, dialog_register_1, DIALOG_STYLE_PASSWORD, "Please Enter A Password", "Please provide a strong password below:", "Continue", "Cancel");
    }
    return 1;
}
It was according to here.

https://www.youtube.com/watch?v=ARsmM0PzM38
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)