what about this? whatswrong with it:
pawn Code:
#include <a_samp>
main()
{
print("random crap loaded!");
}
public OnFilterScriptInit()
{
new w = 15;
new r = 12;
Func1(w, r);
return 1;
}
Func1(w, r)
{
new w = r - e;
printf("%i", w);
}
OMFG!!! I used my "knowlege" in this to make my first "include" im gonna start to make a real include. THANKS SOOOOOOO MUCH!!!!!!!!!!















Whats wrong with this?
pawn Code:
public OnPlayerConnect(playerid)
{
SendConnectMessage(playerid);
return 1;
}
public OnPlayerDicsonnect(playerid, reason)
{
SendDisconnectMessage(playerid, reason);
return 1;
}
Heres the include:
pawn Code:
SendConnectMessage(playerid)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has joined the server.",name);
SendClientMessageToAll(0xFFFF00AA, string);
print(string);
}
SendDisconnectMessage(playerid, reason)
{
new string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
}
SendClientMessageToAll(0xFFFFFFAA,string);
}
nevermind. how do i make it so that the player doesnt have to use all the functions if he doesnt want to?