#10

Quote:
Originally Posted by Zezombia
Посмотреть сообщение
GetPVarInt only uses 2 params, so:
pawn Код:
GetPVarInt(playerid, "classid")
And we can't help you with your second problem without seeing the code :P. You may not be getting the players name correctly, or you may not be formatting the string correctly.
Oh here it is:
pawn Код:
if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0,-1233.5388,-2331.3735,18.2380))
        {
            new string[128];
            SetPlayerPos(playerid,2263.7610,-2323.9080,323.6542);
            format(string,sizeof(string),"%s has entered the safezone!",playerid);
            SendClientMessageToAll(COLOR_WHITE,string);
            return 1;
        }
        else if(GetPVarInt(playerid, "classid",0) == 1)
        {
            SendClientMessage(playerid,COLOR_RED, "-Access Denied-");
            return 1;
        }
        else
        {
            SendClientMessage(playerid,COLOR_LIGHTBLUE, "You are not at the safezone! Be careful!");
            return 1;
        }
    }
And for GetPVarInt, actually I canno't just put "classid" as there is multiple class ids, i tried with classid1 but it get everything fucked up.

Thanks in advance!

EDIT: Nevermind, I figured out that that on
pawn Код:
SendClientMessageToAll(COLOR_WHITE,string);
I was missing "playerid" xD Where should I put it?
Reply


Messages In This Thread
Hey - by FrostedVince - 14.07.2010, 19:59
Re: Hey - by Zezombia - 14.07.2010, 20:05
Re: Hey - by FrostedVince - 14.07.2010, 20:08
Re: Hey - by Finn - 14.07.2010, 20:37
Re: Hey - by FrostedVince - 14.07.2010, 21:10
Re: Hey - by Finn - 14.07.2010, 21:13
Re: Hey - by FrostedVince - 14.07.2010, 21:16
Re: Hey - by FrostedVince - 15.07.2010, 03:49
Re: Hey - by Zezombia - 15.07.2010, 03:52
Re: Hey - by FrostedVince - 15.07.2010, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)