i have problem in my first gm plz help fast
#6

pawn Code:
main()
{
    print("\n----------------------------------");
    print(" Fun and Games server By Misho");
    print("----------------------------------\n");
   
    public OnPlayerConnect(playerid);
    {

    GameTextForPlayer(playerid,"~w~Welcome to Fun and Games",3000,4);
    SendClientMessage(playerid,COLOR_WHITE,"Welcome to Fun and Games");
   

   
            format(string,sizeof(string),"[INFO]: %s (%d) has joined Fun and Games. (%s)", plname, playerid,playersip);
        if (strlen(pIPs) < 3) SendIP = 0;
        else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
        else
        {



    return 1;
}
How are you gonna post this and not see any obvious things wrong with it. For one, you need to indent so code is easier to read and fix. What Mauzen said is right. You never closed a bracket after the main(). Public functions don't need a semicolon after their name either.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)