SA-MP Forums Archive
HELP please I have problem - 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: HELP please I have problem (/showthread.php?tid=339396)



HELP please I have problem - lonako45 - 03.05.2012

OK
I put filterscript on the folder
and on the server.cfg .. > SAVE
now I start the dos window and this is write me : CCC.AMX load!
on the dos ^^
OK
I am connect to my server and the system dont update ..
Why ? the command didn't work ...
help please?


Re: HELP please I have problem - Accord - 03.05.2012

Show me the command please.


Re: HELP please I have problem - Faisal_khan - 03.05.2012

Paste your command here with [pawn] tags.


Re: HELP please I have problem - lonako45 - 03.05.2012

this is the start FS
:
PHP код:
#include <a_samp>
//==============================================================================
new RGM[MAX_PLAYERS];
new 
GM[MAX_PLAYERS];
new 
ActivityTeleports;
new 
JoinTime2;
new 
JoinTime[MAX_PLAYERS];
new 
ActQ;
new 
PlayerName[256];
new 
ActiveName[128];
new 
activity;
//==============================================================================
#define ActivityJoin    0x8e0c9ff
#define Brown1          0xd11111ff
#define ActivityManager 0xb2b3b2ff
#define Green1          0x48c14ff
#define  RED            0xff0000ff
#define  White          0xFFFFFFAA
#define  yellow         0xFFFF00AA
//==============================================================================
#pragma tabsize 0 
This is the end:
PHP код:
//==============================================================================
stock SendAdminsMessage(color, const string[])
{
    for(new 
i=0i<MAX_PLAYERSi++)
     {
        if(
IsPlayerConnected(i))
        {
                if(
IsPlayerAdmin(i))
                 {
                  
SendClientMessage(icolorstring);
                  }
              }
          }
    return 
1;
}
//==============================================================================
stock GetName(playerid)
{
    new 
Name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNamesizeof(Name));
    return 
Name;
}
//==============================================================================
forward JoinTime1(playerid);
public 
JoinTime1(playerid)
{
SendClientMessage(playerid,0x48c14ff,"аъд йлем мбчщ мдцишу мфтймеъ щеб");
JoinTime2 0;
return 
1;
}
//==============================================================================
strtok(const  string[], &index)
{
 new 
length strlen(string);
 while  ((
index length) && (string[index] <= ' '))
 {
   
index++;
 }
 new 
offset index;
 new 
result[20];
 while  ((
index length) && (string[index] > ' ') &&  ((index offset) < (sizeof(result) - 1)))
 {
  
result[index -  offset] = string[index];
  
index++;
 }
 
result[index offset] =  EOS;
 return 
result;
}
//============================================================================== 
Help ?


Re: HELP please I have problem - Accord - 03.05.2012

Where is the public OnFilterScriptInit?


Re: HELP please I have problem - Faisal_khan - 03.05.2012

Quote:
Originally Posted by lonako45
Посмотреть сообщение
this is the start FS
:
PHP код:
#include <a_samp>
//==============================================================================
new RGM[MAX_PLAYERS];
new 
GM[MAX_PLAYERS];
new 
ActivityTeleports;
new 
JoinTime2;
new 
JoinTime[MAX_PLAYERS];
new 
ActQ;
new 
PlayerName[256];
new 
ActiveName[128];
new 
activity;
//==============================================================================
#define ActivityJoin    0x8e0c9ff
#define Brown1          0xd11111ff
#define ActivityManager 0xb2b3b2ff
#define Green1          0x48c14ff
#define  RED            0xff0000ff
#define  White          0xFFFFFFAA
#define  yellow         0xFFFF00AA
//==============================================================================
#pragma tabsize 0 
This is the end:
PHP код:
//==============================================================================
stock SendAdminsMessage(color, const string[])
{
    for(new 
i=0i<MAX_PLAYERSi++)
     {
        if(
IsPlayerConnected(i))
        {
                if(
IsPlayerAdmin(i))
                 {
                  
SendClientMessage(icolorstring);
                  }
              }
          }
    return 
1;
}
//==============================================================================
stock GetName(playerid)
{
    new 
Name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNamesizeof(Name));
    return 
Name;
}
//==============================================================================
forward JoinTime1(playerid);
public 
JoinTime1(playerid)
{
SendClientMessage(playerid,0x48c14ff,"аъд йлем мбчщ мдцишу мфтймеъ щеб");
JoinTime2 0;
return 
1;
}
//==============================================================================
strtok(const  string[], &index)
{
 new 
length strlen(string);
 while  ((
index length) && (string[index] <= ' '))
 {
   
index++;
 }
 new 
offset index;
 new 
result[20];
 while  ((
index length) && (string[index] > ' ') &&  ((index offset) < (sizeof(result) - 1)))
 {
  
result[index -  offset] = string[index];
  
index++;
 }
 
result[index offset] =  EOS;
 return 
result;
}
//============================================================================== 
Help ?
Give us the whole FS buddy.


Re: HELP please I have problem - lonako45 - 03.05.2012

I need put it ?
***
I put now and this is not work .. the system loaded but no work in the server
I get you all the code just no the commands ..


Re: HELP please I have problem - Accord - 03.05.2012

No, just upload your filterscript to pastebin and after that post here your link.


Re: HELP please I have problem - lonako45 - 03.05.2012

listen ,
I get you all the filterscript just no the commands


Re: HELP please I have problem - KingHual - 03.05.2012

Did you actually define the commands under OnPlayerCommandText ? (Or by using any command rendering include)