Undefined symbol "playerid" ?
#1

Fixed.
Reply
#2

OnGameModeInit hasn't been forward including playerid, since it's nothing to do, but with Game mode initialization.

Try that:

pawn Код:
public OnGameModeInit()
{

    SetGameModeText("The House V-1");
    AddPlayerClass(79,2287.0859,-1109.5970,37.9766,343.7575,0,0,0,0,0,0); //
    enterh = CreatePickup(1318, 2, 2288.2397, -1104.6602, 38.5949, -1);
    opene = CreatePickup(1239, 2, 2294.51, -1104.25, 817.82, -1);
    SetPlayerWeather(playerid, 9); // Warning number 1
    SendClientMessage(playerid, COLOR_WHITE,"Don't bunny hop! Or you will be kicked/banned!"); // Warning number 2
    return 1;
}
Reply
#3

You can't put a code like that in OnGameModeInit. You need to put it in OnPlayerRequestClass or OnPlayerSpawn.

So something like this
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerWeather(playerid, 9); // Warning number 1
        SendClientMessage(playerid, COLOR_WHITE,"Don't bunny hop! Or you will be kicked/banned!"); // Warning number 2
    return 1;
}
Reply
#4

it is because there is not such thing as "playerid" in the OnGameModeInit public...
just copy those lines and put theme in OnPlayerConnect
Reply
#5

Thanks guys!!! I fixed it.
Reply
#6

Quote:
Originally Posted by lawonama
Посмотреть сообщение
Thanks guys!!! I fixed it.
You fixed it or the guys that created the code for you fixed it?
Reply
#7

The guys that created the code for me fixed it.

But I'm not just Copy+Pasting the codes there. I'm trying to learn the errors and don't repeat them again.
Thanks anyways to everyone that helped or wanted to help me!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)