Cimpiling Warning -
_Khaled_ - 21.08.2012
pawn Код:
AddStaticVehicle(411, 2040.11, 1517.89, 10.67, 0, 0, 0, 0, 0, 0, 0);
Error
Код:
D:\SAMP\*\SACRP\gamemodes\****.pwn(131) : warning 202: number of arguments does not match definition
D:\SAMP\Server\*\gamemodes\****.pwn(131) : warning 202: number of arguments does not match definition
D:\SAMP\Server\*\gamemodes\****.pwn(131) : warning 202: number of arguments does not match definition
D:\SAMP\Server\*\gamemodes\****.pwn(131) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
I don't like to keep warning.. what should I do?
Re: Cimpiling Warning -
Jack_Leslie - 21.08.2012
pawn Код:
AddStaticVehicleEx(411, 2040.11, 1517.89, 10.67, 0, 0, 0, 0);
Refer to:
https://sampwiki.blast.hk/wiki/AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Re: Cimpiling Warning -
JaKe Elite - 21.08.2012
pawn Код:
AddStaticVehicle(411, 2040.11, 1517.89, 10.67, 0, 0);
the two '0' in the last part means color1, and color2
Re: Cimpiling Warning -
_Khaled_ - 21.08.2012
Код:
D:\SAMP\Server\gamemodes\****.pwn(131) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
after I remove the extra Zeros, but I didn't add AddStaticVehicleEx..
pawn Код:
AddStaticVehicle(411, 2040.11, 1517.89, 10.67, 0, 0);
Re: Cimpiling Warning -
Jack_Leslie - 21.08.2012
If you're using AddStaticVehicle, use:
pawn Код:
AddStaticVehicle(411, 2040.11, 1517.89, 10.67, 0, 0, 0);
AddStaticVehicle(model, x, y, z, a, color1, color2);
Re: Cimpiling Warning -
_Khaled_ - 21.08.2012
No compiling error/warning
Why's the extra 0?
Re: Cimpiling Warning -
Jack_Leslie - 21.08.2012
AddStaticVehicle(model, x, y, z, a, color1, color2);
1. Model
2. X
3. Y
4. Z
5. A
6. Color1
7. Color2
Re: Cimpiling Warning -
JaKe Elite - 21.08.2012
I think i have a mistake.
I didn't check it properly. Sorry for the mistake..
Re: Cimpiling Warning -
_Khaled_ - 21.08.2012
Another error from the command
pawn Код:
dcmd_test(playerid,params[])
{
new string[128];
new ID;
if(sscanf(params, "", ID))
SendClientMessage(playerid, COLOR_GREEN,"Command Done.");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2004.93,1544.25,13.59);
SetPlayerFacingAngle(playerid,270.0);
SetPlayerToTeamColour(playerid);
return 1;
}
Compile:
Код:
D:\SAMP\Server\gamemodes\***.pwn(272) : warning 203: symbol is never used: "dcmd_test"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: Cimpiling Warning -
JaKe Elite - 21.08.2012
Why creating this?,
pawn Код:
if(sscanf(params, "", ID))
if its empty, remove it, also the new ID;
anyway.
You must define the dcmd. and put this OnPlayerCommandText
pawn Код:
dcmd(test, 4, cmdtext); //test = 4 length - parameter: cmdtext