I have some problem with playerid
#1

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 ?
Reply
#2

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);
}
Reply
#3

ou, THX TO YOU
Reply
#4

No problem ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)