SA-MP Forums Archive
5 Pawno Errors - 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)
+--- Thread: 5 Pawno Errors (/showthread.php?tid=426290)



5 Pawno Errors - Sweez - 28.03.2013

Hello I just putted some mappings on my server and I get these errors:
Код:
C:\Users\User\Desktop\zGamingRoleplay\gamemodes\ZRP.pwn(2400) : error 017: undefined symbol "playerid"
C:\Users\User\Desktop\zGamingRoleplay\gamemodes\ZRP.pwn(2401) : error 017: undefined symbol "playerid"
C:\Users\User\Desktop\zGamingRoleplay\gamemodes\ZRP.pwn(2402) : error 017: undefined symbol "playerid"
C:\Users\User\Desktop\zGamingRoleplay\gamemodes\ZRP.pwn(2403) : error 017: undefined symbol "playerid"
C:\Users\User\Desktop\zGamingRoleplay\gamemodes\ZRP.pwn(2404) : error 017: undefined symbol "playerid"
My lines are:
pawn Код:
RemoveBuildingForPlayer(playerid, 4075, 1791.7969, -1716.9844, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 1531, 1799.1328, -1708.7656, 14.1016, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1805.0234, -1692.4453, 25.1484, 0.25);
RemoveBuildingForPlayer(playerid, 4018, 1791.7969, -1716.9844, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1805.0234, -1692.4453, 25.1484, 0.25);
CreateObject(19129, 2680.58984, -10855.12012, -5596.04492,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 9059.20508, -8246.87891, -3838.15308,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 1769.42847, -1710.99646, 12.31599,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 1790.05603, -1711.24390, 12.41599,   0.00000, 0.00000, 0.00000);
CreateObject(4100, 1767.89636, -1721.88708, 15.06082,   0.00000, 0.00000, 320.13779);
CreateObject(4100, 1760.99121, -1715.29956, 15.20962,   0.00000, 0.00000, 229.89731);
CreateObject(4100, 1801.18689, -1721.86414, 14.15782,   0.00000, 0.00000, 320.13779);
CreateObject(4100, 1801.24146, -1721.86426, 15.06082,   0.00000, 0.00000, 320.13779);
CreateObject(4100, 1787.54285, -1721.85071, 14.15782,   0.00000, 0.00000, 320.13779);
CreateObject(4100, 1787.44556, -1721.85059, 15.06082,   0.00000, 0.00000, 320.13779);
CreateObject(19129, 1770.86169, -1711.20923, 12.41599,   0.00000, 0.00000, 0.00000);
CreateObject(4100, 1773.74988, -1721.95654, 14.15782,   0.00000, 0.00000, 320.13779);
CreateObject(4100, 1773.71912, -1721.85144, 15.06082,   0.00000, 0.00000, 320.13779);
CreateObject(4100, 1767.87305, -1721.89722, 14.15782,   0.00000, 0.00000, 320.13779);
CreateObject(4100, 1760.98865, -1715.30505, 14.20662,   0.00000, 0.00000, 229.89731);
CreateObject(4100, 1761.00977, -1713.78503, 14.20662,   0.00000, 0.00000, 229.89731);
CreateObject(4100, 1761.01184, -1713.78503, 15.20962,   0.00000, 0.00000, 229.89731);
CreateObject(4148, 1763.65076, -1661.20068, 12.37447,   1.44000, 6.06000, 0.22508);
Can someone please help me fixing them ?


Respuesta: 5 Pawno Errors - Porta0123 - 28.03.2013

you add
a_samp no?

i dont see any error in this...


Re: 5 Pawno Errors - Sweez - 28.03.2013

pawn Код:
// Includes
#include <a_samp>
#include <a_players>
#include <dini>
#include <dudb>
#include <dutils>
#pragma unused ret_memcpy
#include <foreach>
#include <sscanf2>
#include <zcmd>
#include <streamer>
#include <OPSP>
#include <progress>
#include <gvc>
Here are my includes ...


Respuesta: 5 Pawno Errors - Porta0123 - 28.03.2013

try this :
pawn Код:
#include <a_samp>
#include <a_players>
#include <dini>
#include <dudb>
#include <dutils>
#include <foreach>
#include <sscanf2>
#include <zcmd>
#include <streamer>
#include <OPSP>
#include <progress>
#include <gvc>
#pragma unused ret_memcpy
i think this :
pawn Код:
#pragma unused ret_memcpy
is the last


Re: Respuesta: 5 Pawno Errors - Sweez - 28.03.2013

Quote:
Originally Posted by Porta0123
Посмотреть сообщение
try this :
pawn Код:
#include <a_samp>
#include <a_players>
#include <dini>
#include <dudb>
#include <dutils>
#include <foreach>
#include <sscanf2>
#include <zcmd>
#include <streamer>
#include <OPSP>
#include <progress>
#include <gvc>
#pragma unused ret_memcpy
i think this :
pawn Код:
#pragma unused ret_memcpy
is the last
I have it ...


Re: 5 Pawno Errors - SilverKiller - 28.03.2013

(FacePalm), You have to put the RemoveBuildingForPlayer in OnPlayerConnect..


Re: 5 Pawno Errors - Glad2BeHere - 28.03.2013

put this under onplayerconnect........
pawn Код:
RemoveBuildingForPlayer(playerid, 4075, 1791.7969, -1716.9844, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 1531, 1799.1328, -1708.7656, 14.1016, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1805.0234, -1692.4453, 25.1484, 0.25);
RemoveBuildingForPlayer(playerid, 4018, 1791.7969, -1716.9844, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1805.0234, -1692.4453, 25.1484, 0.25);



Re: 5 Pawno Errors - doreto - 28.03.2013

RemoveBuildingForPlayer have to be place when player connect ( OnPlayerConnect ) as you see it have playerid

edit:lol too late


Re: 5 Pawno Errors - Sweez - 28.03.2013

Quote:
Originally Posted by doreto
Посмотреть сообщение
RemoveBuildingForPlayer have to be place when player connect ( OnPlayerConnect ) as you see it have playerid
Thank you, btw nice signature xD