AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   tag mismatch please help me (https://forums.alliedmods.net/showthread.php?t=332949)

mark0626 06-10-2021 03:37

tag mismatch please help me
 
warning 213: tag mismatch

CMD: oldbiz(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1338 )
{
new count, string[128], str[5200], name[24], filepath[32];
for(new i=0; i<MAX_BUSINESSES; i++)
{
if(count < 20)
{
format(name, sizeof(name), "%s", BizInfo[i][pBizKey]);
format(filepath, sizeof(filepath), "users/%s.ini", name);
if(strcmp("Nobody", name, true) && strcmp("None", name, true))
{

Celena Luna 06-10-2021 04:03

Re: tag mismatch please help me
 
which line? what plugin?
We don't know what are you talking about.
At least post full function part or whole plugin.

AND USE [PHP] or [CODE] so we can read and help you

mark0626 06-10-2021 04:24

Re: tag mismatch please help me
 
format(name, sizeof(name), "%s", BizInfo[i][pBizKey]);

this line is my problem bro i dont know what is wrong btw this is pwn script

Celena Luna 06-10-2021 05:01

Re: tag mismatch please help me
 
post-the-plugin
This is not enough information to know what wrong

My best guess is something wit BizInfo[i][pBizKey but that all I can see from what you give

mark0626 06-10-2021 05:34

Re: tag mismatch please help me
 
Code:

CMD:oldbiz(playerid, params[])
{
        if(PlayerInfo[playerid][pAdmin] >= 1338)
        {
            new count, string[128], str[5200], name[24], filepath[32];
            for(new i=0; i<MAX_BUSINESSES; i++)
            {
                if(count < 20)
                {
                                format(name, sizeof(name), "%s", BizInfo[i][pBizKey]);
                                format(filepath, sizeof(filepath), "users/%s.ini", name);
                                if(strcmp("Nobody", name, true) && strcmp("None", name, true))
                                {
                                        if(!fexist(filepath))
                                        {
                                            format(string, sizeof(string), "{FF0000}BID Inactive: {FFFFFF}%d    Player: %s\n",i,name);
                                            strcat(str, string);
                                            count ++;
                                        }
                                }
                        }
            }
            ShowPlayerDialog(playerid, DIALOG_SHOW_INFO, DIALOG_STYLE_MSGBOX, "{FF0000}Inactive Businesses", str, "Ok", "Cancel");
        }
        return 1;
}


fysiks 06-10-2021 09:30

Re: tag mismatch please help me
 
Since those are global variables, it's not possible to know what is wrong with just that function. Please attach the .sma file.

kww 06-11-2021 10:05

Re: tag mismatch please help me
 
for what game you're scripting? (just wonder)


All times are GMT -4. The time now is 02:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.