[Ajuda] Alguem sabe corrigir este Warnig? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Alguem sabe corrigir este Warnig? (
/showthread.php?tid=361705)
Alguem sabe corrigir este Warnig? -
brunoboy - 21.07.2012
Warning:
PHP код:
C:\Users\Vitor\Desktop\Server Teste\gamemodes\Server.pwn(100) : warning 209: function "zcmd_OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Codigo:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/kitosama", true) == 0)
{
GivePlayerWeapon(playerid, 35, 55);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -5000);
SetPlayerSkin(playerid, 30);
return 1;
}
A linha do warning nao sei qual й ele diz linha 100 mas so tem 99 linhas o pawno
Re: Alguem sabe corrigir este Warnig? - rjjj - 21.07.2012
Apague esse cуdigo e coloque no lugar dele
:
pawn Код:
CMD:kitosama(playerid)
{
GivePlayerWeapon(playerid, 35, 55);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -5000);
SetPlayerSkin(playerid, 30);
return 1;
}
Espero ter ajudado
.
Re: Alguem sabe corrigir este Warnig? -
F_Cinco - 21.07.2012
Quote:
Originally Posted by brunoboy
Warning:
PHP код:
C:\Users\Vitor\Desktop\Server Teste\gamemodes\Server.pwn(100) : warning 209: function "zcmd_OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Codigo:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/kitosama", true) == 0)
{
GivePlayerWeapon(playerid, 35, 55);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -5000);
SetPlayerSkin(playerid, 30);
return 1;
}
A linha do warning nao sei qual й ele diz linha 100 mas so tem 99 linhas o pawno
|
Vocк estб utilizando a include
zcmd, porйm, criando comandos em
strcmp, entгo digite:
//, antes da hastag da include zcmd para deixб-la inativa ou simplesmente delete a linha.
Re : Alguem sabe corrigir este Warnig? -
brunoboy - 21.07.2012
Ok ja est+a e obrigado