Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Ante_Street poslato Mart 08, 2011, 19:54:32 POSLE PODNE

Naslov: [Pomoc]Objekti
Poruka od: Ante_Street poslato Mart 08, 2011, 19:54:32 POSLE PODNE
Skripta koju koristim: LARP
Detaljan opis problema:Ovako ja uÄ'em na server,i kucam komandu /maska.....izvadi se maska i spremi se isti sekund
Tako je i sa ostalim SetPlayerAttachedObject...........i sad zanima me u cemu je problem?
U skripti imaju 4 warninga:
C:\Documents and Settings\DENY\Desktop\TIPICO ITALIANO\HURA\gamemodes\larp.pwn(86463) : warning 203: symbol is never used: "CivFemalePeds"
C:\Documents and Settings\DENY\Desktop\TIPICO ITALIANO\HURA\gamemodes\larp.pwn(86463) : warning 203: symbol is never used: "CivMalePeds"
C:\Documents and Settings\DENY\Desktop\TIPICO ITALIANO\HURA\gamemodes\larp.pwn(86463) : warning 203: symbol is never used: "Turfs"
C:\Documents and Settings\DENY\Desktop\TIPICO ITALIANO\HURA\gamemodes\larp.pwn(86463) : warning 203: symbol is never used: "textdraw"

Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Naslov: Odg: [Pomoc]Objekti
Poruka od: .G.h.0.s.T. poslato Mart 08, 2011, 21:15:32 POSLE PODNE
symbol is never used

to ti znaci da nigdje nisi koristio u skripti.
Naslov: Odg: [Pomoc]Objekti
Poruka od: Ante_Street poslato Mart 08, 2011, 21:23:50 POSLE PODNE
Citat: [NS]Michael poslato Mart 08, 2011, 21:15:32 POSLE PODNE
symbol is never used

to ti znaci da nigdje nisi koristio u skripti.

U skripti je koristen ovdje sve:
new CivFemalePeds[33][1] = {
{55},
{56},
{63},
{69},
{76},
{85},
{91},
{93},
{131},
{141},
{148},
{150},
{151},
{152},
{157},
{169},
{172},
{190},
{192},
{193},
{194},
{195},
{198},
{201},
{214},
{216},
{219},
{225},
{233},
{237},
{251},
{263},
{298}
};


i ovdje;

   if(RegistrationStep[playerid] > 0)
{
   if(RegistrationStep[playerid] == 1)
   {
       new idx;
    tmp = strtok(text, idx);
   if((strcmp("musko", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("musko")))
{
   PlayerInfo[playerid][pSex] = 1;
   SendClientMessage(playerid, COLOR_YELLOW2, "Ok, ti si Musko.");
   SendClientMessage(playerid, COLOR_LIGHTBLUEGREEN, "Kada si rodjen? (Koristi dd/mm/yyyy)");
   new maleskin;
   maleskin = random(sizeof(CivMalePeds));
   SetPlayerSkin(playerid, maleskin);
   PlayerInfo[playerid][pChar] = maleskin;
   RegistrationStep[playerid] = 2;
   return 0;
}
else if((strcmp("zensko", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("zensko")))
{
   PlayerInfo[playerid][pSex] = 2;
   SendClientMessage(playerid, COLOR_YELLOW2, "Ok, ti si Zensko.");
   SendClientMessage(playerid, COLOR_LIGHTBLUEGREEN, "Kada si rodjen? (Koristi dd/mm/yyyy)");
   new femaleskin;
   femaleskin = random(sizeof(CivFemalePeds));
   SetPlayerSkin(playerid, femaleskin);
   SetPlayerSkin(playerid, femaleskin);
   RegistrationStep[playerid] = 2;
   return 0;
}
else
{
   SendClientMessage(playerid, COLOR_LIGHTBLUEGREEN, "Jesi li Musko ili Zensko? (Napisi sto si).");
}
return 0;
}



Ovaj zadnji dio nemogu izbrisat jer je to i registracija,a ovaj prvi nemam pojma sto je
Naslov: Odg: [Pomoc]Objekti
Poruka od: BloodMaster poslato Mart 08, 2011, 21:58:50 POSLE PODNE
Lol, pa daj komandu maska -.-'
Naslov: Odg: [Pomoc]Objekti
Poruka od: Ante_Street poslato Mart 08, 2011, 22:46:40 POSLE PODNE
Citat: BloodMaster poslato Mart 08, 2011, 21:58:50 POSLE PODNE
Lol, pa daj komandu maska -.-'

Evo BloodMasterice:

if(strcmp(cmd, "/maska", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBMaska] == 1)
{
if(BMaska[playerid] == 0)
{
                   SetPlayerAttachedObject(playerid, 1, 18974, 2, 0.098, 0.0258, 0.0, 90, 90, 0);
                   SendClientMessage(playerid, COLOR_WHITE, " Stavili ste masku na lice. ");
                   BMaska[playerid] = 1;
        return 1;
        }
        else if(BMaska[playerid] == 1)
        {
                   RemovePlayerAttachedObject(playerid, 1);
                   SendClientMessage(playerid, COLOR_WHITE, " Skinuli ste masku sa lica. ");
                   BMaska[playerid] = 0;
        return 1;
        }
       }
       else
       {
SendClientMessage(playerid, COLOR_GRAD2, " Ti neposjedujes masku !");
return 1;
}
       return 1;
}
return 1;
}


Tako je i kod svih sranja vezanih za ::::SetPlayerAttachedObject.........Igrac ga uzme i nakon niti sekundu mu se skine -.-