170 -- 171) : error 029: invalid expression, assumed zero -
Frosty_LV - 26.06.2012
Any ideas?
(170 -- 171) : error 029: invalid expression, assumed zero
Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
(
if (IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086);
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
Re: 170 -- 171) : error 029: invalid expression, assumed zero -
codebreaker23 - 26.06.2012
is that the full code? if o your missing the ending } it seems
Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
if (IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086);
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
}
see what i mean
Re: 170 -- 171) : error 029: invalid expression, assumed zero -
XStormiest - 26.06.2012
[pawno]
if (strcmp("/exit", cmdtext, true, 10) == 0)
(
if (IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086) )
{
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
}
[/pawno]
try this
Re: 170 -- 171) : error 029: invalid expression, assumed zero -
Frosty_LV - 26.06.2012
Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
(
if (IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086); //Donuts Shop
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
// Do something here
return 1;
}
return 0;
}
This is full one.
Re: 170 -- 171) : error 029: invalid expression, assumed zero -
XStormiest - 26.06.2012
First of all ths is a if not a function so don't add ; at the end of if(IsPLaye.r...) because will be errors
and must add
{
}
try this
Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
(
if (IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086) )
{
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
return 1;
}
else return 0;
try this
Re: 170 -- 171) : error 029: invalid expression, assumed zero -
Skaizo - 26.06.2012
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/exit", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086); //Donuts Shop
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
// Do something here
}
return 1;
}