Clan Tag Locking Factions - 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: Clan Tag Locking Factions (
/showthread.php?tid=447130)
Clan Tag Locking Factions -
Jay_Dixon - 28.06.2013
Long story short, i'll let the script do the talking, what am i doing wrong? :S
Код:
C:\Users\Jay\Desktop\GangWarsV.0.1.B\gamemodes\LSTW2Uv2.pwn(1159) : error 029: invalid expression, assumed zero
C:\Users\Jay\Desktop\GangWarsV.0.1.B\gamemodes\LSTW2Uv2.pwn(2529) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
{
if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
SendClientMessage(playerid, HOODLUMS_COLOR, "You have chosen your Owl Valistics Official Clan");
SetPlayerPos(playerid,gHoodlumsSP[rand][0],gHoodlumsSP[rand][1],gHoodlumsSP[rand][2]);
SetPlayerFacingAngle(playerid,gHoodlumsSP[rand][3]);
}
}
}
else
{
/*if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
if(GetPlayerSkin(playerid) == 115)
SendClientMessage(playerid, HOODLUMS_COLOR, "You have chosen your clan's skin."); }
if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
if(GetPlayerSkin(playerid) == 141)
SendClientMessage(playerid, HOODLUMS_COLOR, "You have chosen your Owl Balistics official clan");
SetPlayerHealth(playerid, 0); // he will keep dying until he changes skin. */
ForceClassSelection(playerid);
/* SetPlayerPos(playerid,gHoodlumsSP[rand][0],gHoodlumsSP[rand][1],gHoodlumsSP[rand][2]);
SetPlayerFacingAngle(playerid,gHoodlumsSP[rand][3]); */
}
}
Respuesta: Clan Tag Locking Factions -
CIzaquita - 28.06.2013
Add:
pawn Код:
forward OnPlayerPrivmsg( here add the parameters);
Parameters mustbe "playerid"
Give me the (1159) line to verify that.
Re: Clan Tag Locking Factions -
Jay_Dixon - 29.06.2013
That's line 1159, so i have no clue what's up xD
Re: Clan Tag Locking Factions -
[ABK]Antonio - 29.06.2013
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
switch(GetPlayerTeam(playerid))
{
case TEAM_HOODLUMS:
{
if(strfind(name, "[ABK]", false) == -1) {
return 0;
}
}
}
return 1;
}
https://sampwiki.blast.hk/wiki/Strfind
Re: Clan Tag Locking Factions -
Jay_Dixon - 29.06.2013
I'm still having issues with it :S
I know it's crazy to ask, but would one of you be able to go on Teamviewer and help me? Cuz i gotta finish this team xD