[13:25:13] *** CreateDynamicObject: Expecting 12 parameter(s), but found 11
#10

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
Use a custom function instead of the "CreateDynamicObject"
pawn Код:
stock CreateDynamicObjectEx(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 200.0)
    return CreateDynamicObject(modelid, x, y, z, rx, ry, z, worldid, interiorid, playerid, streamdistance, drawdistance);

#define CreateDynamicObject CreateDynamicObjectEx
Press CTRL+H and replace every "CreateDynamicObject" part then with "CreateDynamicObjectEx", make sure you don't clear this one. I haven't tested it completely, though I hope it works. Using such an idea, you can get the map icons also converted.
Код:
C:\Users\Cris\Desktop\0.3z Server\Philippines Roleplay (2014) - Copy\gamemodes\VGRP.pwn(15993) : error 035: argument type mismatch (argument 10)
C:\Users\Cris\Desktop\0.3z Server\Philippines Roleplay (2014) - Copy\gamemodes\VGRP.pwn(18368) : error 035: argument type mismatch (argument 10)
C:\Users\Cris\Desktop\0.3z Server\Philippines Roleplay (2014) - Copy\gamemodes\VGRP.pwn(21681) : error 017: undefined symbol "worldid"
C:\Users\Cris\Desktop\0.3z Server\Philippines Roleplay (2014) - Copy\gamemodes\VGRP.pwn(21681) : error 029: invalid expression, assumed zero
C:\Users\Cris\Desktop\0.3z Server\Philippines Roleplay (2014) - Copy\gamemodes\VGRP.pwn(21681) : error 017: undefined symbol "interiorid"
C:\Users\Cris\Desktop\0.3z Server\Philippines Roleplay (2014) - Copy\gamemodes\VGRP.pwn(21681) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Код:
15993: 	mysteryegg = CreateDynamicObjectEx(19056, Position[0], Position[1], Position[2]-0.4, 0.0, 0.0, Position[3], -1, -1, -1, 200.0);
Код:
18368: object[f] = CreateDynamicObjectEx(GunObjects[gunid][0],ObjCoords[f][0],ObjCoords[f][1],ObjCoords[f][2]-1,93.7,120.0,120.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 100.0);
Код:
21681:  SetPVarInt(playerid, "pBoomBox", CreateDynamicObjectEx(2226, x, y, z, 0.0, 0.0, 0.0, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid)));
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)