Originally Posted by HunterCash97
pawn Код:
D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(56) : error 017: undefined symbol "strtok" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(56) : error 033: array must be indexed (variable "cmd") D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(76) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(85) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(239) : warning 219: local variable "idx" shadows a variable at a preceding level D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(240) : error 017: undefined symbol "strtok" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(240) : error 033: array must be indexed (variable "opcion") D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(245) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(289) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(292) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(292) : error 004: function "OnPlayerSpawn" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(296) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(299) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(299) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(299) : error 004: function "OnPlayerDeath" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(301) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(304) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(304) : error 017: undefined symbol "SetupPlayerForClassSelection" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(313) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(313) : error 004: function "OnPlayerRequestClass" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(315) : error 017: undefined symbol "SetupPlayerForClassSelection" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(316) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(319) : warning 225: unreachable code D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(319) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(319) : error 004: function "OnPlayerPickUpPickup" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(321) : error 017: undefined symbol "pickupid" D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(327) : error 079: inconsistent return types (array & non-array) D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(330) : error 029: invalid expression, assumed zero D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(330) : error 004: function "OnGameModeInit" is not implemented D:\Archivos\Simon\Server samp\gamemodes\bare.pwn(858) : error 079: inconsistent return types (array & non-array)
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Esos errores me tira..
Este es el code...
pawn Код:
if(strcmp(cmdtext, "/comando", true) == 0) { new opcion[10]; new idx; opcion = strtok(cmdtext, idx);
if(!strlen(opcion)) { SendClientMessage(playerid, -1, "Escribe: /comando (1-5) "); return true; } if(strcmp(opcion, "1", true) == 0) { if (strcmp(cmdtext, "/normal", true) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); SendClientMessage(playerid, COLOR_ROJO, "Tu nuevo estilo de pelea es Normal");
} if(strcmp(opcion, "2", true) == 0) { if (strcmp(cmdtext, "/normal", true) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); SendClientMessage(playerid, COLOR_ROJO, "Tu nuevo estilo de pelea es Normal");
} if(strcmp(opcion, "3", true) == 0) { if (strcmp(cmdtext, "/normal", true) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); SendClientMessage(playerid, COLOR_ROJO, "Tu nuevo estilo de pelea es Normal");
} if(strcmp(opcion, "4", true) == 0) { if (strcmp(cmdtext, "/normal", true) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); SendClientMessage(playerid, COLOR_ROJO, "Tu nuevo estilo de pelea es Normal");
} if(strcmp(opcion, "5", true) == 0) { if (strcmp(cmdtext, "/normal", true) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); SendClientMessage(playerid, COLOR_ROJO, "Tu nuevo estilo de pelea es Normal");
} }
return false; }
|