1
Scripting SA-MP [Pawn center] / Re : Faire un compteur [AIDE]
« le: 13 Mai 2016, 10:37:02 »
il y a un tat de fs, même cristab avait fait un system complet, fait une petite recherche tu trouveras
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.
Non mais à mon avis, il parle de site Web je crois ;)
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(487) : error 025: function heading differs from prototype
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(541) : error 021: symbol already defined: "checkpointUpdate"
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(582) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(623) : error 017: undefined symbol "label"
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(623) : warning 215: expression has no effect
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(623) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(623) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sèlim\Bureau\SERVEUR SA-MP\gamemodes\OaklandGangWars.pwn(623) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
:wall
new checkpointType[ MAX_POINTS ] = {
CP_AMMU,
CP_AMMU_2,
CP_AMMU_3,
CP_AMMU_4,
CP_AMMU_5,
CP_LSAP,
CP_LVAP,
CP_SFAP,
CP_LSTS,
CP_LVTS,
CP_SFTS
};
forward getCheckpointType( playerID );
public getCheckpointType( playerID ) {
return checkpointType[ playerCheckpoint][playerid];
}
forward getCheckpointType( playerID );
new playerCheckpoint[ SLOTS ];
public checkpointUpdate( )
{
for(new i=0; i<SLOTS; i++)
{
if(IsPlayerConnected(i)) {
for(new j=0; j < MAX_POINTS; j++) {
if(isPlayerInArea(i, checkCoords[j])) {
if(playerCheckpoint[i]!=j) {
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
playerCheckpoint[i] = j;
}
} else {
if(playerCheckpoint[i]==j) {
DisablePlayerCheckpoint(i);
playerCheckpoint[i] = 999;
}
}
}
}
}
}
public checkpointUpdate( )
{
for(new i=0; i<SLOTS; i++)
{
if(IsPlayerConnected(i)) {
for(new j=0; j < MAX_POINTS; j++) {
if(isPlayerInArea(i, checkCoords[j])) {
if(playerCheckpoint[i]!=j) {
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
playerCheckpoint[i] = j;
}
} else {
if(playerCheckpoint[i]==j) {
DisablePlayerCheckpoint(i);
playerCheckpoint[i] = 999;
}
}
}
}
}
}
rien d'autre
public getCheckpointType( playerID ) {
return checkpointType[ playerCheckpoint][playerid];
}