SA-MP Forums Archive
House Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: House Problem (/showthread.php?tid=206028)



House Problem - NewbBeginner - 02.01.2011

pawn Код:
#define SPAWN_HOUSE(%1)             \
        Houses[%1][house_pickup] = CreateDynamicPickup(HOUSE_PICKUP_MODEL, 23,                  \
                                    Houses[%1][house_x], Houses[%1][house_y],                   \
                                    Houses[%1][house_z], 0, 0, -1);                             \
        Houses[%1][house_label] = CreateDynamic3DTextLabel("", HOUSE_LABEL_COLOR,               \
                                    Houses[%1][house_x], Houses[%1][house_y],                   \
                                    Houses[%1][house_z]+0.65, 20,                               \
                                    INVALID_PLAYER_ID, INVALID_VEHICLE_ID, true, 0, 0, -1);     \
        UpdateHouseLabel(id); \
        Houses[%1][house_icon] = CreateDynamicMapIcon(Houses[%1][house_x],                      \
                                    Houses[%1][house_y], Houses[%1][house_z],                   \
                                     31, 0, 0, Houses[%1][house_interior]);
Код:
C:\(214) : error 075: input line too long (after substitutions)
C:\(218) : error 010: invalid function or declaration
214: UpdateHouseLabel(id); \
218: Empty line after
Код:
31, 0, 0, Houses[%1][house_interior]);