2 Errors on Cuff animation!!! +Rep for the one who Fix it!
#1

When I complies im getting this errors:
Код:
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)
On this line:
Код:
SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);
What's Wrong?
Tell me if you want me to Paste any more Lines.

+Rep to the one who fixes it!
Reply
#2

make sure that u have defined giveplayerid ...
Reply
#3

Lol it worked if i changed it to "playerid" :S

Thanks for the Reply anyways! +rep for you
Reply
#4

lol its k i just wanted to make sure that it was giveplayerid or playerid ...
Reply
#5

Can I see the whole command?
Reply
#6

Quote:
Originally Posted by tyler12
Посмотреть сообщение
Can I see the whole command?
man cant u see that the prob is solved =.="
Reply
#7

Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
man cant u see that the prob is solved =.="
Quote:
Originally Posted by goviscrap
Посмотреть сообщение
Lol it worked if i changed it to "playerid" :S

Thanks for the Reply anyways! +rep for you
Sir, he said it works if he changes 'giveplayerid' to 'playerid'. I wouldn't of replied if it was solved.
Reply
#8

hehe.. One thing only worked.... :/ error 035: argument type mismatch (argument 2) is still there and fuck things up! :/
here is the whole Code of it:

Код:
}
	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
	{
Reply
#9

Show Us The Whole Code

@tyler12 Srry Lol I dont wanna be rude... just telling u
Reply
#10

pawn Код:
}
    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
    {
Take...
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)