Cimpiling Warning
#1

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

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

pawn Код:
AddStaticVehicle(411, 2040.11, 1517.89, 10.67, 0, 0);
the two '0' in the last part means color1, and color2
Reply
#4

Код:
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);
Reply
#5

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

No compiling error/warning

Why's the extra 0?
Reply
#7

AddStaticVehicle(model, x, y, z, a, color1, color2);

1. Model
2. X
3. Y
4. Z
5. A
6. Color1
7. Color2
Reply
#8

I think i have a mistake.
I didn't check it properly. Sorry for the mistake..
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)