• 04 Juin 2026, 22:26:52


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 - feice

Pages: [1]
1
Salut a tous,je suis tout nouveaux dans le code pawno je commence a piger un peu mais la il y a une erreur que je ne comprend pas,voyez par vous même :

public OnPlayerCommandText(playerid, cmdtext[])

{
if(strcmp(cmdtext, "/army", true) == 0)
{
       SetPlayerInterior(playerid, 0);
       new cartype = GetPlayerVehicleID(playerid);
       SendClientMessage(playerid, COLOR_RED, "Bienvenue a la base millitaire.");
       LinkVehicleToInterior(cartype, 0);
       if(!IsPlayerInAnyVehicle(playerid))
       {
       SetPlayerPos(playerid,287,-1391.1573,498.4880,19);
       }
       else
        {
        SetVehiclePos(cartype,287,-1391.1573,498.4880,19);
        SetVehicleZAngle(cartype,186.0976);
        }
       return 1;
       }
       
  if(strcmp(cmdtext, "/mlv", true) == 0)
{
       SendClientMessage(playerid, COLOR_RED, "Bienvenue au motos de Las Venturas");
       new cartype = GetPlayerVehicleID(playerid);
       SetPlayerInterior(playerid, 0);
       LinkVehicleToInterior(cartype, 0);
       if(!IsPlayerInAnyVehicle(playerid))
       {
       SetPlayerPos(playerid,287,-1391.1573,498.4880,19);
       }
       else
        {
        SetVehiclePos(cartype,287,-1391.1573,498.4880,19);
        SetVehicleZAngle(cartype,186.0976);
        }
       return 1;
       }
  }
  return 1;
}


l'erreur c'est :

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Stunt.pwn(176) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Stunt.pwn(180) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Stunt.pwn(194) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Stunt.pwn(198) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Stunt.pwn(204) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Stunt.pwn(203) : warning 209: function "OnPlayerCommandText" should return a value

si vous pouvez m'aidez assez rapidement,j'en serait trèes reconnaissant ^^

Pages: [1]