28.04.2012, 16:06
I made a function when teams enter car its sendmessage test(so just for test but dont work)
But when i make this in a command it works fine:
Cant onplayerstatechange not detect the pvarint?
Код:
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPVarInt(playerid,"Skill")==1)
{
SendClientMessage(playerid,COLOR_RED,"test");
return 1;
}
return 1;
}
Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
if(GetPVarInt(playerid,"Skill")==1)
{
SendClientMessage(playerid,COLOR_RED,"test");
return 1;
}
return 1;
}

