[HELP] what's wrong with this ?
#1

Whene i set myself Vip lvl 3 , and whene i spawn , it gives me only the Kelvar(Armor) and 1000$ , but no weapons...
this is the Public onplayerspawn
pawn Код:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
    if(Vip[playerid] == 1){
    VIPS[playerid] = Create3DTextLabel("Silver VIP", COLOR_VIP, 0.0, 0.0, 0.0, 50.0, 0, 0);
    Attach3DTextLabelToPlayer(VIPS[playerid], playerid, 0.0, 0.0, 0.0);
    SetPlayerArmour(playerid,50);
    GivePlayerWeapon(playerid , 22, 20);
    GivePlayerMoney(playerid, 320);
    SendClientMessage(playerid, COLOR_GREY, "You are (VIP:Silver) you earn $320 and a colt45 with 20 ammo(+Kelvar 50).");
    }
    if(Vip[playerid] == 2){
    VIPS[playerid] = Create3DTextLabel("Gold VIP", COLOR_VIP, 0.0, 0.0, 0.0, 50.0, 0, 0);
    Attach3DTextLabelToPlayer(VIPS[playerid], playerid, 0.0, 0.0, 0.0);
    SetPlayerArmour(playerid,70);
    GivePlayerWeapon(playerid , 22, 50);
    GivePlayerMoney(playerid, 600);
    SendClientMessage(playerid, COLOR_YELLOW, "You are (VIP:Gold) you earn $600 and a colt45 with 50 ammo(+Kelvar 70).");
    }
    if(Vip[playerid] == 3){
    VIPS[playerid] = Create3DTextLabel("Premium VIP", COLOR_RED, 0.0, 0.0, 0.0, 50.0, 0, 0);
    Attach3DTextLabelToPlayer(VIPS[playerid], playerid, 0.0, 0.0, 0.0);
    SetPlayerArmour(playerid,100);
    GivePlayerWeapon(playerid , 22, 50);
    GivePlayerWeapon(playerid , 25, 50);
    GivePlayerMoney(playerid, 1000);
    SendClientMessage(playerid, COLOR_RED, "You are (VIP:Premium) you earn $1000 and a colt45+shotgun with 50 ammo(+Full Kelvar).");
    }
    return 1;
}
NB : it is a FS .
Reply
#2

Anyone ?
Reply
#3

1. Indent with a clearer style.
2. Debug it with print()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)