[HELP] SetPlayerAttachedObject Problem
#10

Quote:
Originally Posted by Sid_Alexander
Посмотреть сообщение
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.
Do you have it like this?

pawn Код:
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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)