10.01.2018, 10:07
I need help, i have problems with this, can u guys help me pls?
Script:
Warning:
Line 352:
Line 381:
Line 387:
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; }
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 © 1997-2006, ITB CompuPhase 14 Warnings.
Code:
ProxDetectorS(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Code:
format(str, sizeof(str), "* %s take hands cuff out and cuffed %s .", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
Code:
ProxDetectorS(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);