10.09.2010, 00:32
In GameModeInit
In OnPlayerCommandText
If i want to add a new command (for example /kill) i get some errors from this functions.
Here is the errors :
pawn Код:
call_by_gametype("init_classes");
call_by_gametype("init_vehicles");
call_by_gametype("init_objects");
pawn Код:
call_by_gametype(const function_prefix[])
{
new buff[255];
format(buff, sizeof(buff), "%s_%s", function_prefix, get_server_name(server_type));
CallLocalFunction(buff, "");
}
call_by_gametype_i(const function_prefix[], i1)
{
new buff[255];
format(buff, sizeof(buff), "%s_%s", function_prefix, get_server_name(server_type));
CallLocalFunction(buff, "i", i1);
}
Here is the errors :
Код:
C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(168) : error 017: undefined symbol "call_by_gametype" C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(169) : error 017: undefined symbol "call_by_gametype" C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(170) : error 017: undefined symbol "call_by_gametype" C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(247) : warning 225: unreachable code C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(319) : error 017: undefined symbol "call_by_gametype" C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(319) : error 029: invalid expression, assumed zero C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(319) : error 017: undefined symbol "function_prefix" C:\Users\Administrator\My Documents\Downloads\Compressed\srv-u1-mp-a-r8-win\gamemodes\simple.pwn(319) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.