[pomoc] Komanda /space

Započeo Mirnas_Tajic, Mart 12, 2011, 13:04:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Mirnas_Tajic

Skripta koju koristim://
Detaljan opis problema:Kako da napravim komandu  /space za pracenje igraca
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Mart 12, 2011, 13:09:05 POSLE PODNE od Mirnas_Tajic

makelele

bice tebi i mod ljut ako neprocitas pravila

Mirnas_Tajic


probaj ovako nesto

if(strcmp(cmd, "/tv", true) == 0 || strcmp(cmd, "/recon", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /recon [playerid/PartOfName]" );
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /recon off (prekid recona)" );
return 1;
}
if(strcmp("off", tmp, true, strlen(tmp)) == 0)
{
    if(WatchingTV[playerid] > 0)
    {
    GetPlayerMoney(playerid);
        WatchingTV[playerid] = 0;
Spectate[playerid] = 253;
GameTextForPlayer(playerid, "~w~                Recon~n~~r~                Off", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   You are not watching TV !");
    return 1;
}
}
if(PlayerInfo[playerid][pAdmin] >= 2)
{
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
Spectate[playerid] = giveplayerid;
new Float:health;
GetPlayerHealth(Spectate[playerid], health);
new Float:armor;
GetPlayerArmour(Spectate[playerid], armor);
GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
new cash =  GetPlayerMoney(Spectate[playerid]);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
format(string, sizeof(string), "Recon: (%d) %s $%d H:%.0f A:%.0f",Spectate[playerid],giveplayer,cash,health,armor);
}
SendClientMessage(playerid, COLOR_GREEN, string);
WatchingTV[playerid] = 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "   Target is not available.");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
return 1;
}
}
return 1;
}


Mirnas_Tajic

Zasto mi izbaci kad ono Complite izbaci mi Pawn Compliter librry Eror imam dole send Error Report   i  don"t Send

To je zato sto moras da imas isti broj "{" i "}"