Team Doors(FIX)
#1

This Is The Code
Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
new name[24];
GetPlayerName(playerid, name,sizeof(name));
if (strcmp(name, "Austin_Rapter",true) == 0)
if(IsPlayerInRangeOfPoint(playerid, 1.0,323.4512, 311.1318, 999.5049))
{
if (isopen1 == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What Would You Like To Do", "Open\nClose\nInfo", "Select", "Close");
MoveObject(test,320.9000, 313.7110, 1000.7000,0.90);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~b~Cell 1 ~g~Opening",1500,4);
isopen1 = 1;
return 1;
}
if (isopen1 == 1)
{
MoveObject(test, 320.89999389648, 312, 1000.700012207,0.90);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~b~Cell 1 ~r~ Closing",1500,4);
isopen1 = 0;
return 1;
}
else
{
SendClientMessage(COLOR_RED,"Sorry Your In The Mafia Goto Your HQ And Open Them");
return 1;
}
}
}
return 1;
}

Quote:

And This Is The Error
error 035: argument type mismatch (argument 2)

Reply
#2

Quote:

SendClientMessage(playerid, COLOR_RED,"Sorry Your In The Mafia Goto Your HQ And Open Them");

This means the things in the line arenґt all there, like you forgot playerid.
Reply
#3

EDIT: the guy before was faster
Reply
#4

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
This means the things in the line arenґt all there, like you forgot playerid.
Thanks i forgot about it now i know ill try and remember
Reply
#5

Ok guys i changed it to

else if(gTeam[playerid] == Mafia)
{
MESSAGE
}
}
return 1;
}

and now its working thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)