21.10.2015, 01:22
(
Последний раз редактировалось ChoDa; 21.10.2015 в 01:44.
Причина: Better explain
)
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
\\..... there is code
\\.... This is end
}
}
return 1;
}
} // this bracket is closing the if(){} statemnet
} // this bracket is closing the public OnPlayerKeyStateChange
Without this:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
Perfectly work but i need type /enter every time. Some Help?
There is error
.pwn(82016) : error 029: invalid expression, assumed zero
.pwn(82016) : error 017: undefined symbol "newkeys"
.pwn(8201 : warning 219: local variable "string" shadows a variable at a preceding level
.pwn(82019) : error 017: undefined symbol "newkeys"
82016 Line of public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
\\..... there is code
\\.... This is end
}
}
return 1;
}
} // this bracket is closing the if(){} statemnet
} // this bracket is closing the public OnPlayerKeyStateChange
Without this:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
Perfectly work but i need type /enter every time. Some Help?
There is error
.pwn(82016) : error 029: invalid expression, assumed zero
.pwn(82016) : error 017: undefined symbol "newkeys"
.pwn(8201 : warning 219: local variable "string" shadows a variable at a preceding level
.pwn(82019) : error 017: undefined symbol "newkeys"
82016 Line of public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)