19.08.2012, 13:23
Quote:
pawn Код:
Ex: pawn Код:
|
Porem arrumei 2 erro surgiu 6 das linhas
pawn Код:
C:\Documents and Settings\Maurilio\Desktop\SAMPSERVER\gamemodes\Inactived.pwn(73) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Maurilio\Desktop\SAMPSERVER\gamemodes\Inactived.pwn(76) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Maurilio\Desktop\SAMPSERVER\gamemodes\Inactived.pwn(78) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Maurilio\Desktop\SAMPSERVER\gamemodes\Inactived.pwn(80) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Maurilio\Desktop\SAMPSERVER\gamemodes\Inactived.pwn(82) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Maurilio\Desktop\SAMPSERVER\gamemodes\Inactived.pwn(84) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
pawn Код:
forward SalveHours(playerid);
public SalveHours(playerid)
{
new ano,month,dia,horas,minutos,segundos,Don[50],PFile[50];
getdate(ano, month, dia);
gettime(horas,minutos,segundos);
GetPlayerName(playerid,DName,sizeof(DName));
format(PFile, sizeof(PFile), "/ServerData/Players/%s", DName);
format(Don, sizeof(Don), "%02d", ano);
fwrite(PFile, Don);//erro aqui
format(Don, sizeof(Don), "%02d\r\n", month);
fwrite(PFile, Don);//erro aqui
format(Don, sizeof(Don), "%02d\r\n", dia);
fwrite(PFile, Don);//erro aqui
format(Don, sizeof(Don), "%02d\r\n", horas);
fwrite(PFile, Don);//erro aqui
format(Don, sizeof(Don), "%02d\r\n", minutos);
fwrite(PFile, Don);//erro aqui
format(Don, sizeof(Don), "%02d\r\n", segundos);
fwrite(PFile, Don);//erro aqui
return true;
}