13.02.2013, 08:08
does anyone know how to fix this error
the code below
All of the code below
the code below
Код:
if(PlayerInfo[playerid][pClothes] != 0)
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == iTrashman) // Trashman
{
GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Trashman~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
return 1;
}
if(pickupid == iTrashUniform)
{
if(PlayerInfo[playerid][pClothes] != 0)
{
GameTextForPlayer(playerid, "~w~Type /change to change back into your~n~~r~Clothes", 5000, 3);
}
else
{
GameTextForPlayer(playerid, "~w~Type /change to change into a ~n~~r~Trashman Uniform", 5000, 3);
}
return 1;
}
if(IsAtPPhone(playerid))
{
GameTextForPlayer(playerid, "~w~Payphone~n~~b~/usephone", 5000, 3);
return 1;
}
return 1;
}

