SA-MP Forums Archive
why do i get error? - 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)
+--- Thread: why do i get error? (/showthread.php?tid=544408)



why do i get error? - kingcrome - 01.11.2014

FILE LOCATION: error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
	    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
 {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
		// Do something here
		return 1;
	}
	return 0;
}
This is the line of code


Re : why do i get error? - MCZOFT - 01.11.2014

PHP код:
{
    if (
strcmp("/mycommand"cmdtexttrue10) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid7.02695.6880, -1704.630011.8438))
         {
        
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
        return 
1;
        }
    }
    return 
0;

try this ?


Re: Re : why do i get error? - kingcrome - 01.11.2014

Thank you very much!