if(strcmp(cmd, "/neon", true) == 0) { SetPlayerAttachedObject(playerid, 3, 18649,3,0.1,0.1,-0.1,0.0,270.0,0.0); return 1; }
if(strcmp(cmd, "/neon", true) == 0) { AttachObjectToVehicle(playerid, 18649,3,0.1,0.1,-0.1,0.0,270.0,0.0); return 1; }
D:\Games\Desktop\Overseas RolePlay\gamemodes\OSRP.pwn(29853) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 10888 bytes Code size: 1679764 bytes Data size: 10383536 bytes Stack/heap size: 16384 bytes; estimated max. usage=4473 cells (17892 bytes) Total requirements:12090572 bytes 1 Warning.
Look at samp wiki how to do it. Click me And you will see how you should do.
|
new objectid = CreateObject(18649, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.1,0.1,-0.1,0.0,270.0,0.0);
D:\Games\Desktop\Overseas RolePlay\gamemodes\OSRP.pwn(29853) : error 003: declaration of a local variable must appear in a compound block D:\Games\Desktop\Overseas RolePlay\gamemodes\OSRP.pwn(29853) : error 017: undefined symbol "objectid" D:\Games\Desktop\Overseas RolePlay\gamemodes\OSRP.pwn(29854) : error 017: undefined symbol "objectid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
Now What?
Код:
D:\Games\Desktop\Overseas RolePlay\gamemodes\OSRP.pwn(29853) : error 003: declaration of a local variable must appear in a compound block D:\Games\Desktop\Overseas RolePlay\gamemodes\OSRP.pwn(29853) : error 017: undefined symbol "objectid" D:\Games\Desktop\Overseas RolePlay\gamemodes\OSRP.pwn(29854) : error 017: undefined symbol "objectid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
if(strcmp(cmd, "/neon", true) == 0) {
new objectid = CreateObject(18649, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.1,0.1,-0.1,0.0,270.0,0.0);
return 1;
}