I have some problem with playerid - 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: I have some problem with playerid (
/showthread.php?tid=305209)
I have some problem with playerid -
lamarr007 - 21.12.2011
Hi, i programming my gangwar mod to my server.
I have :
Код:
stock GangWarGrove()
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 1);
SetPlayerPos(playerid, 2510.9182,-1667.1847,13.5677);
SetPlayerFacingAngle(playerid, 108.3680);
SetPlayerSkin(playerid, 106);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0x33AA33AA);
SendClientMessage(playerid, 0x33AA33AA, "Připojil jste se ke GROVE!");
SendClientMessage(playerid, 0xFFFFFFAA, "Pouћнjte /exit pro ukončenн!");
gangwar[playerid]=1;
gteam[playerid]=1;
TogglePlayerControllable(playerid,1);
}
And if i compile it i have this errors :
Код:
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(229) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(230) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(231) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(232) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(233) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(234) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(235) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(236) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(237) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(238) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(239) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(240) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(241) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(242) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(243) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(244) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(250) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(251) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(252) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(253) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(254) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(255) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(256) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(257) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(258) : error 017: undefined symbol "playerid"
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(259) : error 017: undefined symbol "playerid"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Can you help me please ?
Re: I have some problem with playerid -
demonarn - 21.12.2011
Not sure Try
pawn Код:
stock GangWarGrove(playerid)//see added playerid there
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 1);
SetPlayerPos(playerid, 2510.9182,-1667.1847,13.5677);
SetPlayerFacingAngle(playerid, 108.3680);
SetPlayerSkin(playerid, 106);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0x33AA33AA);
SendClientMessage(playerid, 0x33AA33AA, "Připojil jste se ke GROVE!");
SendClientMessage(playerid, 0xFFFFFFAA, "Použнjte /exit pro ukončenн!");
gangwar[playerid]=1;
gteam[playerid]=1;
TogglePlayerControllable(playerid,1);
}
Re: I have some problem with playerid -
lamarr007 - 21.12.2011
ou, THX TO YOU
Re: I have some problem with playerid -
demonarn - 21.12.2011
No problem ^^