Crash
#1

Why my sam-server.exe exist when I enter this command
PHP код:
CMD:orgsef(playeridparams[])
{
    if(
PlayerInfo[playerid][Admin] < 5)
    {
        
ERROR(playerid"You are not allowed to use this command");
        return 
1;
    }
    new 
orgid;
    if(
sscanf(params"i"orgid))
    {
        
USAGE(playerid"/orgsef [Org ID] - [Sef will be created on your current pos]");
        return 
1;
    }
    if(
OrgInfo[orgid][orgExist])
    {
        
ERROR(playerid"That ID of org does not exist");
        return 
1;
    }
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    
OrgInfo[orgid][oSef] = 1;
    
OrgInfo[orgid][oSefX] = X;
    
OrgInfo[orgid][oSefY] = Y;
    
OrgInfo[orgid][oSefZ] = Z;
    
OrgLabel(orgid);
    new 
query[200];
    
mysql_format(g_SQLquerysizeof(query), "UPDATE `orgs` SET `Sef` = %d, `SefX` = %f, `SefY` = %f, `SefZ` = %f"1XYZ);
    
mysql_tquery(g_SQLquery);
    
AdminMessage(-1"Admin %s created/edited sef for org");
    return 
1;

It should create label but problem is that my samp-server.exe stops working.. I have no idea why. Nothing in mysql log and nothing in server log..
Reply


Messages In This Thread
Crash - by Micko123 - 24.11.2016, 19:36
Re: Crash - by Micko123 - 24.11.2016, 19:44
Re: Crash - by Pearson - 24.11.2016, 19:47
Re: Crash - by Micko123 - 25.11.2016, 07:47
Re: Crash - by Micko123 - 25.11.2016, 08:01
Re: Crash - by IceBilizard - 25.11.2016, 08:22
Re: Crash - by Micko123 - 25.11.2016, 08:24
Re: Crash - by Micko123 - 25.11.2016, 08:30
Re: Crash - by Alvitr - 25.11.2016, 08:36
Re: Crash - by Micko123 - 25.11.2016, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)