• 03 Mai 2025, 00:49:59


Voir les contributions

Cette section vous permet de consulter les contributions (messages, sujets et fichiers joints) d'un utilisateur. Vous ne pourrez voir que les contributions des zones auxquelles vous avez accès.


Messages - [DaD]Kizo

Pages: [1]
1
Showroom SA:MP / Re : [FS/INC] Gestion Vehicule (Achat,vente,....)
« le: 11 Septembre 2009, 18:21:26 »
Salut, quand je dé-commente la ligne #define FILTERSCRIPT, il me met 4 erreurs:

D:\GTA San Andreas\GTA San Andreas\pawno\include\gveh.inc(72) : error 025: function heading differs from prototype
D:\GTA San Andreas\GTA San Andreas\pawno\include\gveh.inc(74) : error 025: function heading differs from prototype
D:\GTA San Andreas\GTA San Andreas\pawno\include\gveh.inc(1863) : error 025: function heading differs from prototype
D:\GTA San Andreas\GTA San Andreas\pawno\include\gveh.inc(2003) : error 025: function heading differs from prototype

Savez-vous d'où ceci peut venir ?

Merci d'avance

2
La 1.1 ;)

3
Non je n'ai rien de tout ça et j'utilise seulement le gveh comme include ;)

Et ce qui est bizarre c'est que chez P0k3r ça ne le fait pas, il me passe son script et la j'ai toujours la même erreur alors que lui non. :-X

4
Salut j'ai un problème dans l'installation ,une erreur qui m'empêche d'ouvrir mon serveur:

D:\GTA San Andreas\GTA San Andreas\pawno\include\gveh.inc(2687) : error 021: symbol already defined: "IsNumeric"

Pourtant je ne voit aucun isnumeric et je ne sais pas quoi faire.

Merci

5
Salut, il faut l'installer dans un filterscript? ou l'intégrer dans le gamemode? je comprend pas très bien dsl (j'ai lu ton mode d'emploie mais je n'ai pas tout compris)

Merci

6
Scripting SA-MP [Pawn center] / Re : Payer
« le: 02 Mai 2009, 14:20:53 »
Je sais pas, j'apprends en maniant  ;D

Juste un petit truc, vous savez ce qu'est le aLog pour une commande /asave. :ohmy

7
Scripting SA-MP [Pawn center] / Re : Payer
« le: 02 Mai 2009, 12:11:47 »
Oui j'ai pris la commande du gf, mais ça peut coller au moins? :laugh

8
Scripting SA-MP [Pawn center] / Payer
« le: 01 Mai 2009, 23:28:31 »
Salut,

Désolé de vous embêter une fois de plus mais j'ai des problèmes de script :P
Si vous pouvez m'aider ça serait sympa :)

Le script: (commande du GF)

new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new giveplayerid, moneys;
cmd = strtok(cmdtext, idx);

if(strcmp(cmd, "/pay", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /pay [playerid/PartOfName] [amount]");
return 1;
}
//giveplayerid = strval(tmp);
        giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /pay [playerid/PartOfName] [amount]");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        if(PlayerInfo[giveplayerid][pLocal] == 106)
{
SendClientMessage(playerid, COLOR_YELLOW, "Command not allowed in this location");
return 1;
}
if (ProxDetectorS(5.0, playerid, giveplayerid))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(playerid);
if (moneys > 0 && playermoney >= moneys)
{
    ConsumingMoney[giveplayerid] = 1;
GivePlayerMoney(playerid, (0 - moneys));
GivePlayerMoney(giveplayerid, moneys);
format(string, sizeof(string), "   Vous avez envoyer %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD1, string);
format(string, sizeof(string), "   Vous avez reçus $%d de %s(player: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_GRAD1, string);
format(string, sizeof(string), "%s has paid $%d to %s", sendername, moneys, giveplayer);
PayLog(string);
if(moneys >= 1000000)
{
ABroadCast(COLOR_YELLOW,string,1);
}
PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "* %s Sort un peut d'argent et le remet à %s.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "   Montant invalide.");
}
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "   Vous êtes trop loin.");
}
}//invalid id
}
else
{
format(string, sizeof(string), "   %d Ce joueur n'est pas actif.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}

et les erreurs:
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaD.pwn(936) : error 017: undefined symbol "ReturnUser"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaD.pwn(947) : error 017: undefined symbol "PlayerInfo"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaD.pwn(947) : warning 215: expression has no effect
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaD.pwn(947) : error 001: expected token: ";", but found "]"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaD.pwn(947) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaD.pwn(947) : fatal error 107: too many error messages on one line

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


5 Errors.

La ligne qui bug:
if(PlayerInfo[giveplayerid][pLocal] == 106)
J'ai vraiment essayer mais la je ne sais pas du tout.

Merci.

9
Scripting SA-MP [Pawn center] / Re : Probleme /spawncar
« le: 30 Avril 2009, 01:22:55 »
Waaaaaa ! Merci ! ça marche nikel !

Merci à toi :D

10
Scripting SA-MP [Pawn center] / Re : Probleme /spawncar
« le: 30 Avril 2009, 00:49:12 »
Ok mais je comprend pas, ça marche toujours pas :'( ,

new cmd[256],tmp[256],idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "/spawncar", true)==0)
{
tmp= strtok(cmdtext, idx);
if(!strlen(tmp))
{
  SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /spawncar [car number]");
return 1;
  }
new param2=strval(tmp);
if(param2 < 400 || param2 > 611)
{
  SendClientMessage(playerid, 0xFFFFFFAA, "carnumber must be between 400 and 611");
return 1;
}
  new Float:x, Float:y,Float:z,Float:p;
  new rand1 = random(126);
    new rand2 = random(126);

GetPlayerFacingAngle(playerid, p);
GetPlayerPos(playerid, x, y, z);
  CreateVehicle(param2,x+3.0*floatsin(-p,degrees),y+3.0*floatcos(-p,degrees),z+0.5, p+90.0, rand1, rand2, 600);
return 1;
}

D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(399) : error 017: undefined symbol "strtok"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(399) : error 033: array must be indexed (variable "cmd")
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(402) : error 017: undefined symbol "strtok"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(402) : error 033: array must be indexed (variable "tmp")
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(398) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Pourtant c'est bien comme tu ma dis de faire

11
Scripting SA-MP [Pawn center] / Re : Probleme /spawncar
« le: 29 Avril 2009, 23:59:05 »
Merci pour ta réponse MrFredo, j'ai essayé comme toi mais il me reste des erreurs, toujours sur la même ligne  ;D

new cmd[256],tmp[256], strtok, idx;

cmd = strtok(cmdtext, idx)
if (strcmp(cmd, "/spawncar", true)==0)
{
      tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
        SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /spawncar [car number]");
return 1;
         }
new param2=strval(tmp);
if(param2 < 400 || param2 > 611)
{
        SendClientMessage(playerid, 0xFFFFFFAA, "carnumber must be between 400 and 611");
return 1;
}
  new Float:x, Float:y,Float:z,Float:p;
    new rand1 = random(126);
      new rand2 = random(126);
     
GetPlayerFacingAngle(playerid, p);
GetPlayerPos(playerid, x, y, z);
CreateVehicle(param2,x+3.0*floatsin(-p,degrees),y+3.0*floatcos(-p,degrees),z+0.5, p+90.0, rand1, rand2, 600);
return 1;
}

D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(715) : error 012: invalid function call, not a valid address
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(715) : warning 215: expression has no effect
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(715) : warning 215: expression has no effect
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(715) : error 001: expected token: ";", but found ")"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(715) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(715) : fatal error 107: too many error messages on one line

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


4 Errors.

12
Scripting SA-MP [Pawn center] / Re : Probleme /spawncar
« le: 29 Avril 2009, 21:05:46 »
Nan ca marche pas =/

13
Scripting SA-MP [Pawn center] / Probleme /spawncar
« le: 29 Avril 2009, 20:37:50 »
Salut voila j'ai un autre petit problème, j'ai une commande /spawncar mais il y a une ligne que je n'arrive pas à régler =/

new cmd[256];
new strtok;
new idx;

if (strcmp(cmd, "/spawncar", true, 9)==0)
{
      cmd = strtok(cmdtext, idx)
if(!strlen(cmd))
{
        SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /spawncar [car number]");
return 1;
         }
    new param2=strval(cmd);
    if(param2>611)
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "carnumber must be between 400 and 611");
return 1;
     }
if(param2<400)
        {
        SendClientMessage(playerid, 0xFFFFFFAA, "carnumber must be between 400 and 611");
return 1;
}
    new Float:x;
    new Float:y;
    new Float:z;
    new Float:p;
    new rand1 = random(126);
    new rand2 = random(126);

    GetPlayerFacingAngle(playerid, p);
    GetPlayerPos(playerid, x, y, z);
      CreateVehicle(param2,x+3.0*floatsin(-p,degrees),y+3.0*floatcos(-p,degrees),z+0.5, p+90.0, rand1, rand2, 600);
    return 1;
}

La ligne qui marche pas: cmd = strtok(cmdtext, idx)

les erreurs:

D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(665) : error 012: invalid function call, not a valid address
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(665) : warning 215: expression has no effect
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(665) : warning 215: expression has no effect
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(665) : error 001: expected token: ";", but found ")"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(665) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(665) : fatal error 107: too many error messages on one line

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


4 Errors.

14
Scripting SA-MP [Pawn center] / Re : Commande /vcolor
« le: 28 Avril 2009, 18:12:42 »
Merci a toi Sim,

J'ai essayer de faire comme tu as fait, j'ai essayé de définir idx (il me le demandait) en faisant cela:

new idx = 0;

Mais quand j'essaye la commande sur le jeux, la voiture devient noir en faisant simplement /vcolor et en essayant une couleur après, la commande ne marche pas. Est-ce que je doit déterminer les couleurs?

15
Scripting SA-MP [Pawn center] / Commande /vcolor
« le: 28 Avril 2009, 00:02:42 »
Bonjour à tous :)

Voila donc je vous explique, je débute en script (on est tous passé par la :P) et j'essaie de faire mes commandes (tout seul si j'y arrive :) ) mais la je bloque :( .

Donc j'ai déja essayer en faisant ça:

   //commande /vcolor
if(strcmp(cmdtext,"/vcolor", true) == 0)
{
   SetVehiclePos(GetPlayerVehicleID(playerid);
   if(IsPlayerInAnyVehicle(playerid));
   {
      ChangeVehicleColor(vehicleid, color1, color2);
}
return 1;
}

Mais je sais pas du tout quoi faire ;D

Les erreurs:

D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(540) : error 001: expected token: ",", but found ";"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(541) : error 036: empty statement
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(543) : error 017: undefined symbol "vehicleid"
D:\GTA San Andreas\GTA San Andreas\gamemodes\DaDtest.pwn(545) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

Un peu d'aide de votre serait super gentil :D

Je vous remercie d'avance. :P

Pages: [1]