[HELP]Hello Can You Fix It Please?
#1

pawn Код:
#include <a_samp>

#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xFF0000FF
public OnGameModeInit()
{
    print("\n~~~~~~~~~~~~~~~~~~~~");
    print("Movie Server By Nico");
    print("~~~~~~~~~~~~~~~~~~~~\n");
    return 1;
}

public OnGameModeExit()
{
    return 1;
}


public OnPlayerConnect(playerid)
{
  new pName[MAX_PLAYER_NAME];
  new string[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(string, sizeof(string), "%s has joined Nico's Movie Server.", pName);
  SendClientMessageToAll(0xAAAAAAAA, string);
    SendClientMessage(playerid,COLOR_WHITE,"Welcome To Nico's Movie Server");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
  new pName[MAX_PLAYER_NAME], string[56];
  GetPlayerName(playerid, pName, sizeof(pName));
  switch(reason)
    {
    case 0: format(string, sizeof(string), "%s has Left Nico The Dickhad server. (Crashed)", pName);
    case 1: format(string, sizeof(string), "%s Left Nico The Dickhad server. (Leaving)", pName);
    case 2: format(string, sizeof(string), "%s has Left Nico The Dickhad server. (Kicked)", pName);
    }
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
    SendClientMessage(playerid,COLOR_RED,"PM have sent!");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Cash", cmdtext, true, 5) == 0)
    {
        GivePlayerMoney(playerid,100000);
        SendClientMessage(playerid,COLOR_RED,"Here Is Some Cash");
        return 1;
    }
    return 1;
}
what is wrong here? plz plz plz plz help
Reply
#2

First, use tags and second, what is wrong?
Reply
#3

Did you a favour, copied all of this into pawno and only one warning of loose indentation came up after compiling, is that you're problem?
Reply
#4

C:\Documents and Settings\Madalin\Desktop\SA-MP SERVER\filterscripts\Untitled.pwn(26) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


A simple warning, but in the rest..
It should work.
Reply
#5

Look i dont understand much can u just fix it and post here?
Ofc if u want u can make urself a credit with SendClientMessage
Reply
#6

pawn Код:
#include <a_samp>

#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xFF0000FF
public OnGameModeInit()
{
 print("\n~~~~~~~~~~~~~~~~~~~~");
 print("Movie Server By Nico");
 print("~~~~~~~~~~~~~~~~~~~~\n");
 return 1;
}

public OnGameModeExit()
{
 return 1;
}


public OnPlayerConnect(playerid)
{
  new pName[MAX_PLAYER_NAME];
  new string[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(string, sizeof(string), "%s has joined Nico's Movie Server.", pName);
  SendClientMessageToAll(0xAAAAAAAA, string);
  SendClientMessage(playerid,COLOR_WHITE,"Welcome To Nico's Movie Server");
  return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
  new pName[MAX_PLAYER_NAME], string[56];
  GetPlayerName(playerid, pName, sizeof(pName));
  switch(reason)
 {
    case 0: format(string, sizeof(string), "%s has Left Nico The Dickhad server. (Crashed)", pName);
    case 1: format(string, sizeof(string), "%s Left Nico The Dickhad server. (Leaving)", pName);
    case 2: format(string, sizeof(string), "%s has Left Nico The Dickhad server. (Kicked)", pName);
 }
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;
}

public OnPlayerSpawn(playerid)
{
 return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
 return 1;
}

public OnVehicleSpawn(vehicleid)
{
 return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
 return 1;
}

public OnPlayerText(playerid, text[])
{
 return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
 SendClientMessage(playerid,COLOR_RED,"PM have sent!");
 return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
 if (strcmp("/Cash", cmdtext, true, 5) == 0)
 {
   GivePlayerMoney(playerid,100000);
   SendClientMessage(playerid,COLOR_RED,"Here Is Some Cash");
   return 1;
 }
 return 1;
}
There you go, just copy it and should have no warnings
For the future, loose identation is no big deal, no need to worry.
Reply
#7

Thank you.
But Can u please Upload it
(PWN and AMX)
If u will ill thank u very very much.
Cuz on my samp-server it says Invaild index parameter or something like that so idk what to do
Reply
#8

Quote:
Originally Posted by PLS ANSWER ME
Thank you.
But Can u please Upload it
(PWN and AMX)
If u will ill thank u very very much.
Cuz on my samp-server it says Invaild index parameter or something like that so idk what to do
add

pawn Код:
main()
{
print("My server");
}
in your gamemode
Reply
#9

At start of it?
Reply
#10

Quote:
Originally Posted by PLS ANSWER ME
At start of it?
Below your Includes, like:

pawn Код:
#include <a_samp>

main()
{
    print("\n----------------------------------");
    print(" Movie server by Nico");
    print("----------------------------------\n");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)