SA-MP Forums Archive
[Ajuda] Argument type mismatch sem motivo aparente - 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] Argument type mismatch sem motivo aparente (/showthread.php?tid=649718)



Argument type mismatch sem motivo aparente - brunogusava - 13.02.2018

Gente, estou com um erro que estou achando meio estranho, o cуdigo estб abaixo:

PHP код:
if(!strcmp(idplayerid)) // Nessa linha estб dando "error 035: argument type mismatch (argument 1)"
        
{
            
SendClientMessage(playerid0xFF0000FF"[BLC] |Erro| Vocк nгo pode se convidar.");
        } 
Foto do cуdigo abaixo:




Re: Argument type mismatch sem motivo aparente - RodrigoMSR - 13.02.2018

PHP код:
if(id == playerid



Re: Argument type mismatch sem motivo aparente - brunogusava - 13.02.2018

Quote:
Originally Posted by RodrigoMSR
Посмотреть сообщение
PHP код:
if(id == playerid
Valeu, vou usar, jб que o strcmp deu ruim kkkkkkk


Re: Argument type mismatch sem motivo aparente - Ermanhaut - 13.02.2018

O id e o playerid sгo ambos nъmeros inteiros, vocк deve compara-los com == como mostra o exemplo acima.

Strcmp й usado para comparar duas strings.