2 Warnings I cant figure out - 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: 2 Warnings I cant figure out (
/showthread.php?tid=309355)
2 Warnings I cant figure out -
BleverCastard - 07.01.2012
Warnings:
Код:
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(11477) : warning 202: number of arguments does not match definition
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(11483) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Код:
CMD:cgate(playerid, params[]) {
if(playerVariables[playerid][pGroup] == 5)
if(IsPlayerInRangeOfPoint(playerid, 7.0, -411.60000610352, 1361.6999511719, 31.200000762939))
{
MoveObject(objectname2, -411.60000610352, 1361.6999511719, 31.200000762939); // line 11477
}
else
{
SendClientMessage(playerid, COLOR_RED, "YOu are either not in range or not apart of the S.A.S!");
}
return 1;
}
Re: 2 Warnings I cant figure out -
BleverCastard - 07.01.2012
Ok I fixed the warning error I still got the 11477 line Warning.
Re: 2 Warnings I cant figure out -
Konstantinos - 07.01.2012
pawn Код:
CMD:cgate(playerid, params[])
{
if(playerVariables[playerid][pGroup] == 5) {
if(IsPlayerInRangeOfPoint(playerid, 7.0, -411.60000610352, 1361.6999511719, 31.200000762939)) {
return MoveObject(objectname2, -411.60000610352, 1361.6999511719, 31.200000762939, 2.00);
}
}
else return SendClientMessage(playerid, COLOR_RED, "YOu are either not in range or not apart of the S.A.S!");
}
MoveObject
Parameters:
(objectid, Float:X, Float:Y, Float:Z, Float:Speed)
You forgot the speed.
Re: 2 Warnings I cant figure out -
BleverCastard - 07.01.2012
Ahaha, Thanks. +1
Re: 2 Warnings I cant figure out -
Konstantinos - 07.01.2012
Quote:
Originally Posted by [MP]Ditch
Ahaha, Thanks. +1
|
Your Welcome!