Why i cant use it?
#1

pawn Код:
public GateOpen(playerid)
{
    new pname[24];
    GetPlayerName(playerid, pname, sizeof(pname));
    for(new i=0; i < GetMaxPlayers(); i++)
    {
        SendClientMessage(i, GREEN, "[Gate]%s is a registerd Admin ... Gate open",pname); // here
        MoveObject(admingate,1067.368042, 1357.989380, 6.322992, 3.5);
        SetTimer("GateClose", 5000, 0);
    }
    return 1;
}

public NoAdmin(playerid)
{
    new pname[24];
    GetPlayerName(playerid, pname, sizeof(pname));
    for(new i=0; i < GetMaxPlayers(); i++)
    {
        SendClientMessage(i, RED, "[Gate]%s is no registerd Admin ... Gate cloased",pname); //and here
    }
    return 1;
}
it say
Код:
C:\DOKUME~1\Mike\Desktop\GTASER~1\GAMEMO~1\STUNTS~1.PWN(4368) : warning 202: number of arguments does not match definition
C:\DOKUME~1\Mike\Desktop\GTASER~1\GAMEMO~1\STUNTS~1.PWN(4398) : warning 202: number of arguments does not match definition
can someone help?
Reply
#2

what are the lines 4368 an 4393 in your code?
Reply
#3

Quote:
Originally Posted by Saladhunter
what are the lines 4368 an 4393 in your code?
scrol on the right side of first post then you see
Reply
#4

Formatting the message should work. Looking at it though I don't see any check if player is admin and I don't see why you need Noadmin part as this can be done in Gateopen.
Reply
#5

done by my self it works fine ~CLOSED~
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)