PDA

View Full Version : I have some problem with playerid


lamarr007
21/12/2011, 05:33 PM
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 (c) 1997-2006, ITB CompuPhase


26 Errors.
Can you help me please ?

demonarn
21/12/2011, 05:36 PM
Not sure Try

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);
}

lamarr007
21/12/2011, 05:37 PM
ou, THX TO YOU :)

demonarn
21/12/2011, 05:39 PM
No problem ^^ :)