C:\Usererror 001: expected token: ";", but found "new"
#1

Hello guys. im kinda lost on my scripting. i've been scripting for 6 hours for my server i am now making a payday but i get this error
pawn Код:
C:\Users\Subang\Desktop\[IT]SFCNR Orignal\gamemodes\IT.pwn(19223) : error 001: expected token: ";", but found "new"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
My Function that i am doing
pawn Код:
public PayDay()
{
    //Variables
    new string[128]
    new mrand =random(30000);
    //
    if(gametime == 12 && gameday == 1)
    {
    for(new i; i<MAX_PLAYERS; i++) //checks through all players
    {
    format(string, sizeof(string),"~w~Pay ~b~Day: %s", mrand);
    GameTextForAll(string, 5000, 3);
    }
    }
    return 1;
}
Reply
#2

pawn Код:
new string[128];
You for got the " ; " after new string[128]
Reply
#3

Lynn Thanks + rep i will have a rest now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)