Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Why is this giving me a tag mismatch, when they are forwarded ints?

$
0
0
Hello, quick question.

Why would the code giving me a tag mismatch, even when the forwarded variable is originally defined in an enum, then forwarded from OnDialogResponse to a function called "TogglePCPSettings" ? I can't seem to understand the compiler here. The case under "OnDialogResponse" throws no warnings. (switch(dialogid)).

PHP Code:

enum dialogids
{
    ...,
    ...,
    
pcpSettings,
    ...,
    ...
};

TogglePCPSettings(playeriddialogidlistitem)
{
    if(
dialogid == pcpSettings)  //Giving a tag mismatch.
    
{
        if(
listitem == 1)
        {
            ..
        }
    ..
}


//OnDialogResponse:

case pcpSettings:
{
    if(!
response)
        
ShowPCPMenu(playerid);
    else
    {
        
TogglePCPSettings(playeriddialogidlistitem);
    }
    return 
1;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>