[POMOC]/ah

Započeo Chris |Caruso|, Februar 09, 2011, 21:01:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Evo ovako iman jedan problem oko komande /ah znaci... ja bih htio da se moze /ah 1 2 3 4 1337 1338 znaci da mozes izabrat level koji hoces....

uzeo sam sa ravensa i stavio sve kako treba i dode mi error:



C:\Program Files (x86)\Rockstar Games\Server\pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2105) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2131) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2161) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2162) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2186) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2435) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2439) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2450) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2462) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2466) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2478) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2482) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2486) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2490) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2494) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2498) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2502) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2506) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2510) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2514) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2526) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2530) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2534) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2538) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2542) : error 004: function "PlayerToPoint" is not implemented
C:\Users\ADMIN\Desktop\josip\gamemodes\oVerated.pwn(2554) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.





KOMANDA

if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if (PlayerInfo[playerid][pAdmin] < 1)
{
    SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this Command!");
    return 1;
}
new plevel = PlayerInfo[playerid][pAdmin];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /(ah)elp [level]");
if(plevel == 1)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVEL: 1.");
}
else if(plevel == 2)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2.");
}
else if(plevel == 3)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3.");
}
else if(plevel == 4)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3, 4.");
}
else if(plevel >= 1337)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3, 4, 1337.");
}
else if(plevel >= 1338)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3, 4,1337, 1338.");
}
return 1;
}

new level = strval(tmp);
if (level == 1)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        SendClientMessage(playerid, COLOR_WHITE, "=========================== Administrator Level 1 ===========================");
SendClientMessage(playerid, COLOR_GRAD1, "DUZNOST: /Adminonduty /Adminoffduty");
SendClientMessage(playerid, COLOR_GRAD1, "/fly /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn /richlist");
SendClientMessage(playerid, COLOR_GRAD1, "/slap /goto /a (/ao)oc /name /setskin /jail /freeze /spec /checkweapons /cc");
    }
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 1!");
    return 1;
}
}
else if (level == 2)
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 2 ===========================");
        SendClientMessage(playerid, COLOR_GRAD2,"/skydive /noooc /setteam /bigears /respawnthiscar(/rtc)  /setjob /update /ban /cnn");
SendClientMessage(playerid, COLOR_GRAD2,"/gotols /gotolv /gotosf /gotoburg /gotobolnica /gotocross /gotorace /healall  /gotohell");
    }
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 2!");
    return 1;
}
}
else if (level == 3)
{
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 3 ===========================");
        SendClientMessage(playerid, COLOR_GRAD3,"/fourdive /prison /unprison /aunlock /fuelcars /edit /vehslap");
SendClientMessage(playerid, COLOR_GRAD3,"/mark /gotomark /gethere /oldcar /gotocar /getcar /setage");
SendClientMessage(playerid, COLOR_GRAD3,"/respawnallcars /respawnrentbikes /respawnrentcars /warn /unwarn");
}
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 3!");
    return 1;
}
}
else if (level == 4)
{
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 4 ===========================");
        SendClientMessage(playerid, COLOR_GRAD4,"/fixveh /mole /logout /logoutpl /logoutall /asellhouse /asellbiz /sellsbiz /setchamp /mk");
    SendClientMessage(playerid, COLOR_GRAD4,"/destroycars /sethp /setarmor /forceskin /explode /supervehslap /unban /unbanip /givegun");
}
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 4!");
    return 1;
}
}
else if (level == 1337)
{
    if(PlayerInfo[playerid][pAdmin] >= 1337)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Main Administrator ===========================");
        SendClientMessage(playerid, COLOR_GRAD5,"/weather /weatherall /makeircadmin /makeleader /bizentrance /sbizentrance");
SendClientMessage(playerid, COLOR_GRAD5,"/asellcar /setstat /money(sets money) /mole /muteall /unmuteall /portall");
SendClientMessage(playerid, COLOR_GRAD5,"/givemoney /crash /changename /houseentrance /housexit /tod /startlotto");
}
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 1337!");
    return 1;
}
}
else if (level == 1338)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 1338 ===========================");
SendClientMessage(playerid, COLOR_WHITE, "/apark /agl /makeadmin /makemaster /cnnn /agivemoneyall /makeadmin /makemaster");
    }
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 1338!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nepoznat Level!");
    return 1;
}
return 1;
}




Pomagajte sto je brze moguce hvala.Ako moze ko da mi da komandu ili mi rece bio bih zahvalan.Hvala !

Mislim da ti erori nisu od /ah







if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if (PlayerInfo[playerid][pAdmin] < 1)
{
    SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this Command!");
    return 1;
}
new plevel = PlayerInfo[playerid][pAdmin];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /(ah)elp [level]");
if(plevel == 1)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVEL: 1.");
}
else if(plevel == 2)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2.");
}
else if(plevel == 3)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3.");
}
else if(plevel == 4)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3, 4.");
}
else if(plevel >= 1337)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3, 4, 1337.");
}
else if(plevel >= 1338)
{
SendClientMessage(playerid, COLOR_GREY, "SLOBODNI LEVELI: 1, 2, 3, 4,1337, 1338.");
}
return 1;
}

new level = strval(tmp);
if (level == 1)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        SendClientMessage(playerid, COLOR_WHITE, "=========================== Administrator Level 1 ===========================");
SendClientMessage(playerid, COLOR_GRAD1, "DUZNOST: /Adminonduty /Adminoffduty");
SendClientMessage(playerid, COLOR_GRAD1, "/fly /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn /richlist");
SendClientMessage(playerid, COLOR_GRAD1, "/slap /goto /a (/ao)oc /name /setskin /jail /freeze /spec /checkweapons /cc");
    }
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 1!");
    return 1;
}
}
else if (level == 2)
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 2 ===========================");
        SendClientMessage(playerid, COLOR_GRAD2,"/skydive /noooc /setteam /bigears /respawnthiscar(/rtc)  /setjob /update /ban /cnn");
SendClientMessage(playerid, COLOR_GRAD2,"/gotols /gotolv /gotosf /gotoburg /gotobolnica /gotocross /gotorace /healall  /gotohell");
    }
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 2!");
    return 1;
}
}
else if (level == 3)
{
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 3 ===========================");
        SendClientMessage(playerid, COLOR_GRAD3,"/fourdive /prison /unprison /aunlock /fuelcars /edit /vehslap");
SendClientMessage(playerid, COLOR_GRAD3,"/mark /gotomark /gethere /oldcar /gotocar /getcar /setage");
SendClientMessage(playerid, COLOR_GRAD3,"/respawnallcars /respawnrentbikes /respawnrentcars /warn /unwarn");
}
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 3!");
    return 1;
}
}
else if (level == 4)
{
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 4 ===========================");
        SendClientMessage(playerid, COLOR_GRAD4,"/fixveh /mole /logout /logoutpl /logoutall /asellhouse /asellbiz /sellsbiz /setchamp /mk");
    SendClientMessage(playerid, COLOR_GRAD4,"/destroycars /sethp /setarmor /forceskin /explode /supervehslap /unban /unbanip /givegun");
}
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 4!");
    return 1;
}
}
else if (level == 1337)
{
    if(PlayerInfo[playerid][pAdmin] >= 1337)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Main Administrator ===========================");
        SendClientMessage(playerid, COLOR_GRAD5,"/weather /weatherall /makeircadmin /makeleader /bizentrance /sbizentrance");
SendClientMessage(playerid, COLOR_GRAD5,"/asellcar /setstat /money(sets money) /mole /muteall /unmuteall /portall");
SendClientMessage(playerid, COLOR_GRAD5,"/givemoney /crash /changename /houseentrance /housexit /tod /startlotto");
}
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 1337!");
    return 1;
}
}
else if (level == 1338)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
        SendClientMessage(playerid, COLOR_WHITE,"=========================== Administrator Level 1338 ===========================");
SendClientMessage(playerid, COLOR_WHITE, "/apark /agl /makeadmin /makemaster /cnnn /agivemoneyall /makeadmin /makemaster");
    }
    else
{
    SendClientMessage(playerid, COLOR_GREY, "Nisi Admin Level 1338!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nepoznat Level!");
    return 1;
}
return 1;
}
return 1;
}


Citat: Chris |Caruso| poslato Februar 09, 2011, 21:20:09 POSLE PODNE
Hvala brate najbolji si :)
Nema problema :) Volim da pomazem kad neko objasni svoj problem :)