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

Warning 213: Tag mismatch and warning 202: number of arguments does not match definition

$
0
0
I need help, i have problems with this, can u guys help me pls?

Script:
Code:

CMD:handcuff(playerid, params[])
{
    new targetid;
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_GREY, "SU DUNG: /handcuff [Player ID]");
    if(IsPlayerConnected(targetid))
        {
            new Float:x, Float:y, Float:z;
              GetPlayerPos(playerid, x, y, z);
              if(IsPlayerInRangeOfPoint(targetid, 5.0, x, y, z))
                  {
                    new str[512];
                      new name[MAX_PLAYER_NAME];
                    GetPlayerName(playerid, name, sizeof(name));
                    new target[MAX_PLAYER_NAME];
                      GetPlayerName(targetid, target, sizeof(target));
                      format(str, sizeof(str), "You cuffed %s .",target);
                      SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
                      format(str, sizeof(str), "You have cuffed by %s!",name);
                      SendClientMessage(targetid, COLOR_LIGHTBLUE, str);
                      SetPlayerAttachedObject(targetid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000);
                      SetPlayerSpecialAction(targetid,SPECIAL_ACTION_CUFFED);
                {
                                    format(str, sizeof(str), "* %s take hands cuff out and cuffed %s .", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                                        ProxDetectorS(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                      return 1;
                }

        }
    return 1;
}

CMD:unhandcuff(playerid, params[])
{

        new targetid;
        if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "SU DUNG: /unhandcuff [Player ID]");
        if(IsPlayerConnected(targetid))
        {
            new Float:x, Float:y, Float:z;
              GetPlayerPos(playerid, x, y, z);
              if(IsPlayerInRangeOfPoint(targetid, 5.0, x, y, z))
                  {
                    if(!SetPlayerAttachedObject(targetid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000))return SendClientMessage(playerid,-1,"ERROR: The player is not cuffed!");
                      SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NONE);
                    new str[512];
                      new name[MAX_PLAYER_NAME];
                    GetPlayerName(playerid, name, sizeof(name));
                    new target[MAX_PLAYER_NAME];
                      GetPlayerName(targetid, target, sizeof(target));
                      format(str, sizeof(str), "You uncuffed for %s!",target);
                      SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
                                          format(str, sizeof(str), "** %s uncuffed for %s", GetPlayerName(playerid), GetPlayerName(playerid));
                                          NewProx(playerid, 0xC688D4AA, str, 30.0);
                      format(str, sizeof(str), "You have uncuffed by %s!",name);
                      SendClientMessage(targetid, COLOR_LIGHTBLUE, str);
                                                {
                                            format(str, sizeof(str), "* %s uncuffed for %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                                                ProxDetectorS(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                                }
                      return 1;
                }

        }
        return 1;
}

Warning:
Code:

C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(352) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(352) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(352) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(352) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(352) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(381) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(381) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(381) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(381) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(387) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(387) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(387) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(387) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\PG-RP.ORG\VGG\VGG\VGG-RP\filterscripts\oocchat.pwn(387) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


14 Warnings.

Line 352:
Code:

ProxDetectorS(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Line 381:

Code:

format(str, sizeof(str), "* %s take hands cuff out and cuffed %s .", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
Line 387:
Code:

ProxDetectorS(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

Viewing all articles
Browse latest Browse all 18226

Trending Articles



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