170 -- 171) : error 029: invalid expression, assumed zero
#1

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);
Reply
#2

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
Reply
#3

[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
Reply
#4

Код:
	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.
Reply
#5

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
Reply
#6

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)