SA-MP Forums Archive
Problem with /robshop cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with /robshop cmd (/showthread.php?tid=103892)



Problem with /robshop cmd - Pawno_Master - 21.10.2009

hello,

What's wrong with this cmd

Код:
	if (strcmp("/robshop", cmdtext, true, 8) == 0)
	{
	  if(IsPlayerInRangeOfPoint(playerid, 1.0,377.9831,-115.0896,1001.4922));
    || if(IsPlayerInRangeOfPoint(playerid,1.0,1953.0453,-2179.0090,13.5469));
    || if(IsPlayerInRangeOfPont(playerid,1.0,-24.8728,-90.8642,1003.5469));
    || if(IsPlayerInRangeOfPoint(playerid,1.0,2025.2592,-1403.3207,17.2099));
    || if(IsPlayerInRangeOfPoint(playerid,1.0,1721.8599,-1452.1295,13.5469));
    || if(IsPlayerInRangeOfPoint(playerid,1.0,1835.6001,-1682.4907,13.3830));
    || if(IsPlayerInRangeOfPoint(playerid,1.0,1847.5140,-1871.6740,13.5781));
    || if(IsPlayerInRangeOfPoint(playerid,1.0,1753.9485,-1903.0785,13.5634));
    || if(IsPlayerInRangeOfPoint(playerid,1.0,2131.8098,-1149.4690,24.2637));
	  GivePlayerMoney(playerid,random(20000);
	  GameTextForPlayer(playerid,"~r~You have robbed the place!",2000,4);
	  SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 6);
		return 1;
	}
i get these errors and warnings
Код:
C:\Samp0.3Server.win32\gamemodes\freeroam.pwn(1153) : error 036: empty statement
C:\Samp0.3Server.win32\gamemodes\freeroam.pwn(1154) : error 029: invalid expression, assumed zero
C:\Samp0.3Server.win32\gamemodes\freeroam.pwn(1154) : warning 215: expression has no effect
C:\Samp0.3Server.win32\gamemodes\freeroam.pwn(1154) : error 001: expected token: ";", but found "if"
C:\Samp0.3Server.win32\gamemodes\freeroam.pwn(1154) : error 036: empty statement
C:\Samp0.3Server.win32\gamemodes\freeroam.pwn(1154) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Plz tell me what's wrong or how i could make it else what would work


Re: Problem with /robshop cmd - MadeMan - 21.10.2009

pawn Код:
if (strcmp("/robshop", cmdtext, true, 8) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0,377.9831,-115.0896,1001.4922)
    || IsPlayerInRangeOfPoint(playerid,1.0,1953.0453,-2179.0090,13.5469)
    || IsPlayerInRangeOfPont(playerid,1.0,-24.8728,-90.8642,1003.5469)
    || IsPlayerInRangeOfPoint(playerid,1.0,2025.2592,-1403.3207,17.2099)
    || IsPlayerInRangeOfPoint(playerid,1.0,1721.8599,-1452.1295,13.5469)
    || IsPlayerInRangeOfPoint(playerid,1.0,1835.6001,-1682.4907,13.3830)
    || IsPlayerInRangeOfPoint(playerid,1.0,1847.5140,-1871.6740,13.5781)
    || IsPlayerInRangeOfPoint(playerid,1.0,1753.9485,-1903.0785,13.5634)
    || IsPlayerInRangeOfPoint(playerid,1.0,2131.8098,-1149.4690,24.2637))
    {
        GivePlayerMoney(playerid,random(20000));
        GameTextForPlayer(playerid,"~r~You have robbed the place!",2000,4);
        SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 6);
        return 1;
    }
}



Re: Problem with /robshop cmd - Pawno_Master - 21.10.2009

o lol ty man