28.07.2015, 03:35
(
Последний раз редактировалось jamesmith12; 28.07.2015 в 04:04.
Причина: [SOLVED]Timer
)
CODE
Error
PHP код:
//OnGameModeInit
SetTimer("scoretimer", 1000, true);
PHP код:
//OnPlayerConnect
forward scoretimer(playerid);
public scoretimer()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new prank[128];
format(prank, sizeof(prank), "Rank : %s" ,GetRankName(i));
PlayerTextDrawShow(playerid ,Textdraw2[i], prank);
}
}
}
Код:
F:\SAMP\gamemodes\MOD.pwn(1686) : error 029: invalid expression, assumed zero F:\SAMP\gamemodes\MOD.pwn(1686) : error 017: undefined symbol "scoretimer" F:\SAMP\gamemodes\MOD.pwn(1687) : error 029: invalid expression, assumed zero F:\SAMP\gamemodes\MOD.pwn(1687) : error 017: undefined symbol "scoretimer" F:\SAMP\gamemodes\MOD.pwn(1695) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
4 Errors.