GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Jeffreeeey le 05 Novembre 2009, 17:22:24

Titre: Addstaticpickup 0.3 PRoblème
Posté par: Jeffreeeey le 05 Novembre 2009, 17:22:24
J'utilise Larp. Il était en 0.2 et je l'ai passer en 0.3. Le seul problème c'est que les addstaticpickup sont invisibles depuis la 0.3. Je comprend pas, sa me fait le meme problème pour tous les Larp. Donc pour résoudre se problème j'ai été faire une recherche addstaticpickup et j'ai ajouté , -1 a la fin. Je compile sa me fait des warnings a cause de sa. Mais maintenant les pickup sont visibles.

for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
if(BizzInfo[h][bOwned] == 1)
{
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
if(SBizzInfo[h][sbOwned] == 1)
{
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
}
for(new i = 0; i < sizeof(BurgerDriveIn); i++)
{
    BurgerPickUp[i] = CreatePickup(1239, 23, BurgerDriveIn[i][0], BurgerDriveIn[i][1], BurgerDriveIn[i][2]);
pickups++;
}
  for(new i = 0; i < sizeof(ChickenDriveIn); i++)
{
    ChickenPickUp[i] = CreatePickup(1239, 23, ChickenDriveIn[i][0], ChickenDriveIn[i][1], ChickenDriveIn[i][2]);
pickups++;
}
AddStaticPickup(1239, 2, -792.9693,500.5572,1367.3672, -1);//x
AddStaticPickup(1239, 2, -779.3134,497.8989,1371.7490, -1);//x

Voila avec les -1 dans les addstaticpickup. Il y'en a plusieur mais je vais pas tous les mettres. Donc comment réparer ce warning :

C:\Users\x\x\gamemodes\x.pwn(11720) : warning 202: number of arguments does not match definition
C:\Users\x\x\gamemodes\x.pwn\gamemodes\x.pwn(11721) : warning 202: number of arguments does not match definition

Merci de votre futur aide
Titre: Re : Addstaticpickup 0.3 PRoblème
Posté par: scott1 le 05 Novembre 2009, 18:01:27
En fait tu doit recompilé ton GM avec les include de la V0.3A.


Donc tu telecharge le serveur de la V0.3A, tu extrait tout, Tu suprime les dossier gamemode, filterscript et scriptfile, ensuite tu met les dossier gamemode, filterscript et scriptfie de ta v02 dans le dossier de ta V0.3A, et ouvre pawno qui est dans ton dossier pawn, tu ouvre ton gm et tu recompile.


J'espère que tu m'a compris ^^
Titre: Re : Addstaticpickup 0.3 PRoblème
Posté par: Jeffreeeey le 05 Novembre 2009, 19:09:13
Merci beaucoup.
Titre: Re : Addstaticpickup 0.3 PRoblème
Posté par: scott1 le 05 Novembre 2009, 20:36:59
Pour une fois que je peux aider ^^