SA-MP Forums Archive
help warnings - 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: help warnings (/showthread.php?tid=449638)



help warnings - Deividasltu - 09.07.2013

Dear All I want your help for Waring:
C: \ Documents and Settings \ EDG.EDG-FA868DFE3C6 \ Desktop \ Project \ gamemodes \ new.pwn (2083): warning 202: number of arguments does not match definition
C: \ Documents and Settings \ EDG.EDG-FA868DFE3C6 \ Desktop \ Project \ gamemodes \ new.pwn (2083): warning 202: number of arguments does not match definition
C: \ Documents and Settings \ EDG.EDG-FA868DFE3C6 \ Desktop \ Project \ gamemodes \ new.pwn (9952): warning 202: number of arguments does not match definition
C: \ Documents and Settings \ EDG.EDG-FA868DFE3C6 \ Desktop \ Project \ gamemodes \ new.pwn (9972): warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
lines
pdvartukai = CreateObject (980,639.6992188, -598.5996094,18.1000004,0.0000000);
if (IsPlayerInRangeOfPoint (playerid, 10.0, 980,639.6992188, -598.5996094,18.1000004))


Re: help warnings - Calabresi - 09.07.2013

pawn Код:
pdvartukai = CreateObject(980, 639.6992188, -598.5996094, 18.1000004, 0.0000000, 0, 0);
if (IsPlayerInRangeOfPoint(playerid, 10.0, 639.6992188, -598.5996094, 18.1000004))



Re: help warnings - Sk1lleD - 09.07.2013

CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, FloatrawDistance)
You need to set the other arguments (rY, rZ, DrawDistance)

And Try to use this:
Код:
if (IsPlayerInRangeOfPoint (playerid, 10.0, 639.6992188, -598.5996094, 18.1000004))



Re : help warnings - yusei - 09.07.2013

.... + This
Quote:

pdvartukai = CreateObject (980, 639.6992188, -598.5996094, 18.1000004);




Re: help warnings - Deividasltu - 09.07.2013

thanks you :

wtf ; C:\Documents and Settings\EDG.EDG-FA868DFE3C6\Desktop\Projektas\gamemodes\rpg.pwn(99 73) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

if ( IsPlayerNPC( playerid ) )return 1;


Re : help warnings - yusei - 09.07.2013

add
PHP код:
#pragma tabsize 0 



Re: help warnings - Calabresi - 09.07.2013

Loose indentation warning means your code is not properly indented. For example, doing;
pawn Код:
if(playerid > 0)
{
return 1;
}
Will give out loose indentation warning. You must use;

pawn Код:
if(playerid > 0)
{
     return 1;
}
I hope that's helpful enough.


Re: help warnings - Deividasltu - 09.07.2013

I wanted to ask why I'm not moving gates stand like that?