[POMOC]/aon novije!

Započeo ¤EG¤Ovca.ini, Januar 12, 2012, 13:09:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta: CLRP edit
Problem:
Javljaju mi se ovi errori: C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41479) : error 035: argument type mismatch (argument 1)
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41498) : warning 213: tag mismatch
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41498) : warning 202: number of arguments does not match definition
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41519) : error 035: argument type mismatch (argument 1)
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41538) : warning 213: tag mismatch
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41538) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


A skripta je ovakva: if(strcmp(cmd, "/aon", true) == 0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
{
  SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
        //ABroadCast(SVETLOPLAVA, string);
    new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
    playertextid[playerid] = Create3DTextLabel(playerid,"Admin na duznosti! (Ne ometaj!!)",0x33CCFFAA,fa,fy,fu,40.0);
Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
    else
    {
    SendClientMessage(playerid, WHITE, "{F81414}(Odbijeno) {C3C3C3}Samo Admini!");
    }
    return 1;
  }
if(strcmp(cmd, "/aoff", true) == 0)
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
//ABroadCast(SVETLOPLAVA, string);
  Delete3DTextLabel(playerid, playertextid[playerid]);
return 1;
    }
    else
    {
    SendClientMessage(playerid, WHITE, "{F81414}(Odbijeno) {C3C3C3}Samo Admini!");
    }
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{

    if (PlayerInfo[playerid][pGameSage] >= 1)
    {
            SetPlayerArmour(playerid, 1000.0);
    SetPlayerHealth(playerid, 1000.0);
            GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
    //BroadCast(ZELENKASTA, string);
    new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
  playertextidgs[playerid] = Create3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!!)",0x9ACD32AA,gfa,gfy,gfu,40.0);
            Attach3DTextLabelToPlayer(playertextidgs[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
    }
    else
    {
    SendClientMessage(playerid, WHITE, "Nisi GameSage!");
    }
  return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
    if (PlayerInfo[playerid][pGameSage] >= 1)
    {
        SetPlayerArmour(playerid, 0.0);
    SetPlayerHealth(playerid, 100.0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
        //BroadCast(ZELENKASTA, string);
        Delete3DTextLabel(playerid, playertextidgs[playerid]);
            return 1;
    }
    else
    {
    SendClientMessage(playerid, WHITE, "Nisi GameSage!");
}
  return 1;
}


tamo gore imam new Text3D:playertextid[MAX_PLAYERS];
new Text3D:playertextidgs[MAX_PLAYERS];

jel zna tko sta nevalja???

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0


Problem je u ovim linijama :

playertextid[playerid] = Create3DTextLabel(playerid,"Admin na duznosti! (Ne ometaj!!)",0x33CCFFAA,fa,fy,fu,40.0);

Obriši playerid u Create3DTextLabel funkciji

Delete3DTextLabel(playerid, playertextid[playerid]);

Obriši playerid prvi argument.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong


41479: playertextid[playerid] = Create3DTextLabel("Admin na duznosti! (Ne ometaj!!)",0x33CCFFAA,fa,fy,fu,40.0);

C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41479) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Header size:          14120 bytes
Code size:          4245636 bytes
Data size:          2446336 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4487 cells (17948 bytes)
Total requirements: 6722476 bytes

1 Warning.

ima samo 1 warn sad

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

Na kraju ti fali argument testLOS (0 - da se label ne vidi kroz zidove , 1 - da se vidi) znači na kraju staviš 1 ili 0.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong