C:\Users\Nicklas\Desktop\PRP\gamemodes\PRP.pwn(42988) : error 029: invalid expression, assumed zero C:\Users\Nicklas\Desktop\PRP\gamemodes\PRP.pwn(42988) : error 035: argument type mismatch (argument 2)
SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);
+rep for you
|
Lol it worked if i changed it to "playerid" :S
Thanks for the Reply anyways! +rep for you ![]() |
}
else
{
format(string, sizeof(string), "* You Cuffed %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s Hand Cuffs %s, so he wont go anywhere.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3);
//test Cuffed animation
SetPlayerSpecialAction(giveplayerid, == SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000);//this will set the object cuffs at the hand of the player you want to cuff.
//Test cuffed animation End
//TogglePlayerControllable(giveplayerid, 0); //annars ta tillbaka om ej funkar
//ClearAnimations(giveplayerid); //annars ta tillbaka om ej funkar
//ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0); //annars ta tillbaka om ej funkar
/ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0); //annars ta tillbaka om ej funkar
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = 300;
}
else
{
}
else
{
format(string, sizeof(string), "* You Cuffed %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s Hand Cuffs %s, so he wont go anywhere.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3);
//test Cuffed animation
SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000);//this will set the object cuffs at the hand of the player you want to cuff.
//Test cuffed animation End
//TogglePlayerControllable(giveplayerid, 0); //annars ta tillbaka om ej funkar
//ClearAnimations(giveplayerid); //annars ta tillbaka om ej funkar
//ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0); //annars ta tillbaka om ej funkar
//ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0); //annars ta tillbaka om ej funkar
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = 300;
}
else
{