Problem
#1

pawn Код:
public OnPlayerSpawn(playerid)
{
    td_fuel[playerid] = TextDrawCreate(270,410,"~b~Fuel : ~w~100"); //create the textdraw at position//setting an nice backgroundcolor
    TextDrawLetterSize(td_fuel[playerid],0.700000,1.700000);
    SPEEDOS[playerid] = TextDrawCreate(250,400," ");
    TextDrawLetterSize(SPEEDOS[playerid],0.700000,1.700000);
    Zones[playerid] = TextDrawCreate(293,390, " ");
    TextDrawLetterSize(Zones[playerid],0.700000,1.700000);
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), "%s.ini", name);
    if(Register[playerid] == 1)
    {
    PlayerInfo[playerid][pCash] = 7500;
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1685.5632,-2332.9854,13.5469);
    }
    else
    {
    LoadPosition(playerid);
    }
    if(death[playerid] == 1)
    {
        SetPlayerPos(playerid,2032.4281,-1404.1675,17.2662);
        }
         if(PlayerOrg[playerid] != 0)
    {
        if (GetPVarInt(playerid, "Dead") == 0)
        {
            new string[160];
            new leader[4];
            if (IsLeader(playerid)) leader = "Yes";
            if(!IsLeader(playerid)) leader = "No";
            if (PlayerMember[playerid] == 1)
            {
            format(string,sizeof(string),"Organization: {5CB3FF}%s {FFFFFF}|| Leader: {5CB3FF}%s {FFFFFF}|| Rank: {5CB3FF}Member", GetOrgName(PlayerOrg[playerid]), leader, PlayerRank[playerid]);
            SendClientMessage(playerid, COLOR_WHITE, string);
            }
            if (PlayerADV[playerid] == 1)
            {
            format(string,sizeof(string),"Organization: {5CB3FF}%s {FFFFFF}|| Leader: {5CB3FF}%s {FFFFFF}|| Rank: {5CB3FF}Adv.Member", GetOrgName(PlayerOrg[playerid]), leader, PlayerRank[playerid]);
            SendClientMessage(playerid, COLOR_WHITE, string);
            }
            if (PlayerCo[playerid] == 1)
            {
            format(string,sizeof(string),"Organization: {5CB3FF}%s {FFFFFF}|| Leader: {5CB3FF}%s {FFFFFF}|| Rank: {5CB3FF}Co-Leader", GetOrgName(PlayerOrg[playerid]), leader, PlayerRank[playerid]);
            SendClientMessage(playerid, COLOR_WHITE, string);
            }
            if (PlayerTrial[playerid] == 1)
            {
            format(string,sizeof(string),"Organization: {5CB3FF}%s {FFFFFF}|| Leader: {5CB3FF}%s {FFFFFF}|| Rank: {5CB3FF}Trial", GetOrgName(PlayerOrg[playerid]), leader, PlayerRank[playerid]);
            SendClientMessage(playerid, COLOR_WHITE, string);
            }
            GiveOrgFeatures(playerid);
        }
    }
    SetPVarInt(playerid, "Dead", 0);

    for (new i=1;i<OrgsCount+1;i++)
    {
        for (new a=1;a<Organization[i][ZonesCreated]+1;a++)
        {
            GangZoneShowForPlayer(playerid, Organization[i][Zones][a], Organization[i][ZoneColor][a]);
        }
    }
    return 1;
}
4 Errors at this. fix them pls.
C:\Documents and Settings\Rehan\My Documents\Downloads\samp03x_svr_R1-2_win32(1)\gamemodes\barron.pwn(1627) : warning 203: symbol is never used: "x"
C:\Documents and Settings\Rehan\My Documents\Downloads\samp03x_svr_R1-2_win32(1)\gamemodes\barron.pwn(1685) : error 028: invalid subscript (not an array or too many subscripts): "Zones"
C:\Documents and Settings\Rehan\My Documents\Downloads\samp03x_svr_R1-2_win32(1)\gamemodes\barron.pwn(1685) : warning 215: expression has no effect
C:\Documents and Settings\Rehan\My Documents\Downloads\samp03x_svr_R1-2_win32(1)\gamemodes\barron.pwn(1685) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Rehan\My Documents\Downloads\samp03x_svr_R1-2_win32(1)\gamemodes\barron.pwn(1685) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Rehan\My Documents\Downloads\samp03x_svr_R1-2_win32(1)\gamemodes\barron.pwn(1685) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

Point out the error line on the script.
Reply
#3

I'd like to help,but can you please place some kind of sign on the lines.so i can see what's wrong?
Reply
#4

This.
Zones[playerid] = TextDrawCreate(293,390, " ");
Reply
#5

pawn Код:
new Zones[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)