#include <a_samp>
#include <fly>
public OnFilterScriptInit()
{
print("=========================================\n");
print("SuperMan for SuperNatural People GM");
print(" ");
print("=========================================\n");
return 1;
}
public OnPlayerConnect(playerid)
{
InitFly(playerid);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!IsPlayerAdmin(cmdtext,"/fly",true))
{
StartFly(playerid);
return 1;
}
if(!strcmp(cmdtext,"/stopfly",true))
{
StopFly(playerid);
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/fly",true))
{
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, -1, "You need to be a RCON admin to use this command!");
else
{
StartFly(playerid);
}
return 1;
}
if(!strcmp(cmdtext,"/stopfly",true))
{
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, -1, "You need to be a RCON admin to use this command!");
else
{
StopFly(playerid);
}
return 1;
}
return 0;
}
#include <a_samp>
#include <fly>
public OnFilterScriptInit()
{
print("=========================================\n");
print("SuperMan for SuperNatural People GM");
print(" ");
print("=========================================\n");
return 1;
}
public OnPlayerConnect(playerid)
{
InitFly(playerid);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/fly",true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_WHITE,"You need to be an admin to use this!");
StartFly(playerid);
return 1;
}
if(strcmp(cmdtext,"/stopfly",true) == 0)
{
StopFly(playerid);
return 1;
}
return 0;
}
|
pawn Код:
|
:C:\Users\KryptoniteX\Desktop\gtasa\pawno\fly.pwn(2) : fatal error 100: cannot read from file: "fly" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
|
Код:
#include <a_samp>
#include <fly>
public OnFilterScriptInit()
{
print("=========================================\n");
print("SuperMan for SuperNatural People GM");
print(" ");
print("=========================================\n");
return 1;
}
public OnPlayerConnect(playerid)
{
InitFly(playerid);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/fly",true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_WHITE,"You need to be an admin to use this!");
StartFly(playerid);
return 1;
}
if(strcmp(cmdtext,"/stopfly",true) == 0)
{
StopFly(playerid);
return 1;
}
return 0;
}
|
C:\Users\KryptoniteX\Desktop\gtasa\pawno\fly.pwn(2) : fatal error 100: cannot read from file: "fly" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
|
i mean that SilverKiller post the answer before me .
EDIT : about fly ... you need to have fly.inc in your pawno/include folder |
thanks! i was keeping the fly.inc at pawno with fly.pwn xD