please help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: please help (
/showthread.php?tid=270888)
please help -
MA_proking - 22.07.2011
pawn Код:
if(IsPlayerConnected(playerid) && !AccInfo[playerid][Level] >= 1 || !AccInfo[playerid][pVip] > 2){
Код:
C:\DOCUME~1\Prabhat\Desktop\LuxAdmin.pwn(12281) : warning 213: tag mismatch
C:\DOCUME~1\Prabhat\Desktop\LuxAdmin.pwn(12281) : warning 213: tag mismatch
Can you help in removing warnings
Re: please help -
Backwardsman97 - 22.07.2011
pawn Код:
!AccInfo[playerid][Level] >= 1 || !AccInfo[playerid][pVip] > 2
Remove the '!'s.
Re: please help -
dr.pepper - 22.07.2011
pawn Код:
if(IsPlayerConnected(playerid)
pawn Код:
if(IsPlayerConnected(playerid))
Re: please help -
MA_proking - 22.07.2011
Actully I m using this :
pawn Код:
forward OnPlayerUpdate(playerid);
public OnPlayerUpdate(playerid){
new name[MAX_PLAYER_NAME];
new string[128];
if(IsPlayerConnected(playerid) && !AccInfo[playerid][Level] >= 1 || !AccInfo[playerid][pVip] > 0){
GetPlayerName(playerid,name, sizeof(name));
if(GetPlayerWeapon(playerid) == 36 ){
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Weapon Hack",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}else if(GetPlayerWeapon(playerid) == 37 ){
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Flamethrower",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}else if(GetPlayerWeapon(playerid) == 38 ){
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: MiniGun",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Jetpack",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}
}
return 1;
}
So if I remove NOT '!' So I will work only for admins and vip which I not wants
Re: please help -
Adil - 22.07.2011
Just remove the '!' in both arguments, and change the angle brackets (<, >) in the opposite direction.
Re: please help -
MA_proking - 22.07.2011
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Thanks guys