15.12.2010, 20:36
(
Последний раз редактировалось Kwarde; 15.12.2010 в 20:43.
Причина: p.s.
)
First of all, If you use it as an FS, don't use "OnGameModeInit"/"OnGameModeExit" but "OnFilterScriptInit"/"OnFilterScriptExit".
As second, you have:
What the fuck is that kind of a function? You just use an "open" bracket without an callback!
That give some errors. As third, you have this:
The same shit again. Add that stuff in "OnPlayerCommandText".
And OMG again..
I think, if you fix this, it should give no errors / less errors,
try to fix that and then give the new errors (I won't fix it for you. If you do/try it yourself, you'll get more experience with scripting)
- Kevin
p.s.
Stupid questions don't exists! So don't say your question is stupid, or something like that.
My first filterscript was one big shit! I had this in OnPlayerCommandText:
Output: If you typ ANY command as an non-RCON admin it says: "" You are not an RCON admin! "" and only the fommand /kevintest was working as an RCON admin. BIG FAIL. Did I ask for help? YES I DID. It was still not a stupid question, 'Whats wrong with this'. So stfu. YOUR QUESTION IS NOT STUPID/NOOBISH
As second, you have:
pawn Код:
return 1;
}
//------------------------[EGINE SYSTEM THINKS]-------------------------------
{
print("Engine System loaded.");
return 1;
}
That give some errors. As third, you have this:
pawn Код:
}
//---------------------------[ENGINE THINKS]-------------------------------------
{
dcmd(exitveh, 7, cmdtext);
dcmd(engine, 6, cmdtext);
return 0;
}
And OMG again..
pawn Код:
{
TogglePlayerControllable(playerid,1);
return 1;
}
try to fix that and then give the new errors (I won't fix it for you. If you do/try it yourself, you'll get more experience with scripting)
- Kevin
p.s.
Stupid questions don't exists! So don't say your question is stupid, or something like that.
My first filterscript was one big shit! I had this in OnPlayerCommandText:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerAdmin(playerid))
{
if(strcmp(cmdtext, "/kevintest", true) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "It is working!");
}
}
else
{
SendClientMessage(playerid, 0x00000000, "You are not an RCON admin!");
}
return 1;
}