public OnPlayerCommandText(playerid, cmdtext[]) { new idx; new cmd[256]; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/comando", true) == 0) { return 1; } SetPlayerHealth(playerid, 0.0); SendClientMessage(playerid, COLOR_GRIS, "ESTO ES UNA PRUEBA"); return 1; }
if(strcmp(cmd, "/comando", true) == 0)
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_GRIS, "ESTO ES UNA PRUEBA");
return 1;
}
pawn Код:
|
D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(35) : error 017: undefined symbol "strtok" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(35) : error 033: array must be indexed (variable "cmd") D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(41) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(45) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(45) : error 004: function "OnPlayerSpawn" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(49) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(52) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(52) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(52) : error 004: function "OnPlayerDeath" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(54) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(57) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(57) : error 017: undefined symbol "SetupPlayerForClassSelection" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(66) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(66) : error 004: function "OnPlayerRequestClass" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(68) : error 017: undefined symbol "SetupPlayerForClassSelection" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(69) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(72) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(72) : error 029: invalid expression, assumed zero
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/comando", true) == 0)
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_GRIS, "ESTO ES UNA PRUEBA");
return 1;
}
pawn Код:
|
D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(32) : error 017: undefined symbol "cmd" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(36) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(39) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(39) : error 004: function "OnPlayerSpawn" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(43) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(46) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(46) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(46) : error 004: function "OnPlayerDeath" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(48) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(51) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(51) : error 017: undefined symbol "SetupPlayerForClassSelection" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(60) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(60) : error 004: function "OnPlayerRequestClass" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(62) : error 017: undefined symbol "SetupPlayerForClassSelection" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(63) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(66) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(66) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(66) : error 004: function "OnGameModeInit" is not implemented
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
CMD:comando(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_GRIS, "ESTO ES UNA PRUEBA");
return 1;
}