Weapon Shot Script Error.
#1

When add this script in callback "OnPlayerWeaponShot" server closed.
Script:
Код HTML:
if(pInfo[playerid][pAdmin] < 1 && weaponid == 38 || weaponid == 36)
{
    new string[110];
    format(string,sizeof(string),"%s has been kicked for weapons cheats.", GetName(playerid));
    SendClientMessageToAll(COLOR_RED, string);
    Kick(playerid);
}
.LOG:
Код HTML:
[08:49:12] [debug] Server crashed due to an unknown error
[08:49:12] [debug] Native backtrace:
[08:49:12] [debug] #0 004853e1 in ?? () from samp-server.exe
[08:49:12] [debug] #1 6c266401 in ?? () from plugins\crashdetect.DLL
[08:49:12] [debug] #2 6c280a0c in ?? () from plugins\crashdetect.DLL
[08:49:12] [debug] #3 6c0e51c6 in ?? () from plugins\streamer.DLL
[08:49:12] [debug] #4 0046f3e3 in ?? () from samp-server.exe
[08:49:12] [debug] #5 00490020 in ?? () from samp-server.exe
[08:49:12] [debug] #6 00490032 in ?? () from samp-server.exe
[08:49:12] [debug] #7 6be81bd3 in ?? () from plugins\mysql.DLL
[08:49:12] [debug] #8 0048d4db in ?? () from samp-server.exe
[08:49:12] [debug] #9 5c8b01f8 in ?? () from samp-server.exe
[08:49:12] [debug] #10 61750824 in ?? () from samp-server.exe
Reply
#2

pawn Код:
if(pInfo[playerid][pAdmin] < 1 && weaponid == 38)
{
    new string[110];
    format(string,sizeof(string),"%s has been kicked for weapons cheats.", GetName(playerid));
    SendClientMessageToAll(COLOR_RED, string);
    Kick(playerid);
}
if(weaponid == 36)
{
    new string[110];
    format(string,sizeof(string),"%s has been kicked for weapons cheats.", GetName(playerid));
    SendClientMessageToAll(COLOR_RED, string);
    Kick(playerid);
}
Reply
#3

PHP код:
&& || c   //shit :(
&& (|| c//ok :) 
PHP код:
if(pInfo[playerid][pAdmin] < && (weaponid == 38 || weaponid == 36))
{
    new 
string[110];
    
format(string,sizeof(string),"%s has been kicked for weapons cheats."GetName(playerid));
    
SendClientMessageToAll(COLOR_REDstring);
    
Kick(playerid);

Reply
#4

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
&& || c   //shit :(
&& (|| c//ok :) 
PHP код:
if(pInfo[playerid][pAdmin] < && (weaponid == 38 || weaponid == 36))
{
    new 
string[110];
    
format(string,sizeof(string),"%s has been kicked for weapons cheats."GetName(playerid));
    
SendClientMessageToAll(COLOR_REDstring);
    
Kick(playerid);

Thank you very much! +1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)