Compiler error :3 -
MatheusFelipe13 - 24.03.2015
C:\Users\NERO\Downloads\server gta\pawno\include\YSI\internal\..\y_scriptinit.inc (25
: warning 202: number of arguments does not match definition
C:\Users\NERO\Downloads\server gta\pawno\include\YSI\internal\..\y_scriptinit.inc (270) : warning 202: number of arguments does not match definition
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(5956) : warning 213: tag mismatch
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(6120) : warning 225: unreachable code
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(18156) : warning 202: number of arguments does not match definition
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(18156) : warning 202: number of arguments does not match definition
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(19437) : warning 219: local variable "checknome" shadows a variable at a preceding level
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(32370) : error 001: expected token: ",", but found "["
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(32370) : error 029: invalid expression, assumed zero
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(32370) : warning 215: expression has no effect
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(32370) : error 001: expected token: ";", but found "]"
C:\Users\NERO\Downloads\server gta\gamemodes\GM.pwn(32370) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Linha 32370:
Код:
public cpinfos()
{
foreach(Player, i)
{
new Float:prevdist = 100000.000;
new prevcp;
for(new cpid=1; cpid < MAX_CHECKPOINTS; cpid++){
if(UsedCPSlot[cpid]) {
new Float:dist;
dist == CPSERVICE_getdist(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ]);
if(dist < prevdist){
prevdist = dist;
prevcp = cpid;
}
}
}
new cpid=prevcp;
if(CPSERVICE_getdist(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ]) < Checkpoints[cpid][cpsd]) {
if(CPSERVICE_actualcp[i] != cpid){
SetPlayerCheckpoint(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ],Checkpoints[cpid][cpsz]);
CPSERVICE_actualcp[i] = cpid;
}
} else {
if(CPSERVICE_actualcp[i] != 0){
CPSERVICE_actualcp[i] = 0;
DisablePlayerCheckpoint(i);
}
}
}
}
Alguem ajuda?
Re: Compiler error :3 -
arakuta - 24.03.2015
Vocк tб fazendo uma comparaзгo, enquanto deveria setar o valor da variбvel.
Utilize o operador =
PHP код:
new MinhaVar = 1;
Operadores:
https://sampforum.blast.hk/showthread.php?tid=240266