OnPlayerConnect help
#1

Found how to put skins on playerconnect , but i got some errors on compiling . Here they are

pawn Код:
G:\The new server!!!\gamemodes\PPC_Trucking.pwn(909) : error 001: expected token: ";", but found ")"
G:\The new server!!!\gamemodes\PPC_Trucking.pwn(909) : error 029: invalid expression, assumed zero
Lines :

pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerSkin(playerid, 217) >= 1);
    return 1;
Reply
#2

Replace it with SetPlayerSkin(playerid, 217);
Reply
#3

I need it for level on admin
Reply
#4

I don't know your admin level variable, basically it would be like
if(playeradminlevel >= 1) SetPlayerSkin(playerid, 217);
You should replace "playeradminlevel" with admin level variable.
Reply
#5

what is
admin level variable ?
Reply
#6

help me please , what is admin level variable ?
Reply
#7

Try this:

Код:
public OnPlayerConnect(playerid)
{
    SetPlayerSkin(playerid, 217) >= LEVEL 1);
    return 1;
Reply
#8

pawn Код:
#include a_samp

enum pInfo
{
    pAdmin
}
new PlayerInfo[MAX_PLAYERS][pInfo];

public OnPlayerConnect(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        SetPlayerSkin(playerid, 217);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)