what the wrong with this fs
#1

when i compile rm fs i get
Код:
F:\Fun and Games server\filterscripts\rm1.pwn(36) : error 029: invalid expression, assumed zero
F:\Fun and Games server\filterscripts\rm1.pwn(36) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
the fs code
pawn Код:
#include <a_samp>

new Text:ShadowsRandom;
forward RandomMessage();
public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print("       RandomMessages by Shadow");
        print("--------------------------------------\n");

        SetTimer("RandomMessage",3000,1);

        ShadowsRandom = TextDrawCreate(18.000000,428.000000,"We are apart of Emerald-Gaming!");
        TextDrawAlignment(ShadowsRandom,0);
        TextDrawBackgroundColor(ShadowsRandom,0x000000ff);
        TextDrawFont(ShadowsRandom,2);
        TextDrawLetterSize(ShadowsRandom,0.199999,0.899999);
        TextDrawColor(ShadowsRandom,0xffffffff);
        TextDrawSetOutline(ShadowsRandom,1);
        TextDrawSetProportional(ShadowsRandom,1);
        TextDrawSetShadow(ShadowsRandom,1);
        return 1;

}

new RandomMessages[][] =
{
    "Have you seen a hacker/cheater? use /report [ID] [Reason]",
    "If You Disobey The Rules You Will Get Ban To Read The Rules Type /Rules",
    "Join To The Server's Forum funandgamesserver.freeforums.org",
    "This Server For Fun and Every Thing That You Wan't Will Come!!",
    "If You Need Help Type /cmds and /help",
    "Have Idea Tell IT ine uour forum funandgamesserver.freeforum.org",

};

public RandomMessage()
{
        TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
        return 1;
}

public OnPlayerSpawn(playerid)
{
        TextDrawShowForPlayer(playerid, ShadowsRandom);
        return 1;
}
what the wrong plz help
Reply
#2

help
Reply
#3

What's the line 36, and use [ pawn ] [ /pawn ] because [ code ] is hard to read with no SYNTAX highlighting.
Reply
#4

i changed it to pawn
Reply
#5

Try this

pawn Код:
new RandomMessages[][] =
{
    "Have you seen a hacker/cheater? use /report [ID] [Reason]",
    "If You Disobey The Rules You Will Get Ban To Read The Rules Type /Rules",
    "Join To The Server's Forum funandgamesserver.freeforums.org",
    "This Server For Fun and Every Thing That You Wan't Will Come!!",
    "If You Need Help Type /cmds and /help",
    "Have Idea Tell IT ine uour forum funandgamesserver.freeforum.org"

};
Reply
#6

thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)