[AJUDA] 1 ERRO!
#1

Olб pessoal me ajuda com esse erro aк?!

Код:
G:\oi\gamemodes\ARB.pwn(466) : error 035: argument type mismatch (argument 1)
pawn Код:
for(new i; i < sizeof(BadClans); ++i)
    {
        if(strfind(GetPlayerName(playerid, Nome,24),BadClans[i], true) != -1) //466
        {
Obrigado desde jб.
Reply
#2

PHP код:
new n[24];
GetPlayerName(playeridn24);
for(new 
isizeof(BadClans); ++i)
{
        if(
strfind(nBadClans[i], true) != -1)
        { 
Reply
#3

Dentro da funзгo strfind nos 2 primeiros argumentos й preciso colocar uma string, GetPlayerName nгo retorna uma string, retorna o valor do tamanho do nome do jogador obtido na funзгo, por isso o erro. Pra corrigir use o cуdigo acima.

https://sampwiki.blast.hk/wiki/Strfind

https://sampwiki.blast.hk/wiki/GetPlayerName
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)