help warnings
#1

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

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

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

.... + This
Quote:

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

Reply
#5

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

add
PHP код:
#pragma tabsize 0 
Reply
#7

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.
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)