Hey habe wieder rumgebastelt doch bekomme errors-.- is eigentlich genauso wie im Wiki-.-
//-----------------------------------------------------[countdown]---------------------------------------------
if (strcmp("/countdown", cmdtext, true, 10) == 0)
{
if (strcmp("/countdown ", cmdtext, true, 11) == 0 && strlen(cmdtext)>11)
{
new seconds=strval(cmdtext[11]);
if(strfind(cmdtext[11], ":")>-1)
{
seconds=strval(left(cmdtext[11],strfind(cmdtext[11], ":")))*60+strval(right(cmdtext[11],strfind(cmdtext[11], ":")));
}
CountDownForAll(seconds, 1, 1); //starts a countdown for all players and freezes them
return 1;
}
format(output,sizeof(output), "Syntax: /countdown <min>:<sec> OR /countdown <sec>");
SendClientMessage(playerid, 0xFFFFFFFF, output);
return 1;
}
Und dies die Errors:
C:\Users\Kevin\Desktop\Gamemode\lvdm.pwn(172) : error 017: undefined symbol "left"
C:\Users\Kevin\Desktop\Gamemode\lvdm.pwn(174) : error 017: undefined symbol "CountDownForAll"
C:\Users\Kevin\Desktop\Gamemode\lvdm.pwn(172) : warning 204: symbol is assigned a value that is never used: "seconds"
C:\Users\Kevin\Desktop\Gamemode\lvdm.pwn(177) : error 017: undefined symbol "output"
C:\Users\Kevin\Desktop\Gamemode\lvdm.pwn(177) : error 017: undefined symbol "output"
C:\Users\Kevin\Desktop\Gamemode\lvdm.pwn(177) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\Gamemode\lvdm.pwn(177) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Bitte um Help^^