SA-MP Forums Archive
[Ajuda] Strmid - 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] Strmid (/showthread.php?tid=441904)



Strmid - BielCOP - 04.06.2013

Linha:

pawn Код:
strmid(CarInfo[i][cOwner], DOF2_GetString(gstring,"Dono"), 0, DOF2_GetString(gstring,"Dono"), 999);
strmid(CarInfo[i][cDescription], DOF2_GetString(gstring,"Descriзгo"), 0, DOF2_GetString(gstring,"Descriзгo"), 999);
Erro:

pawn Код:
C:\Documents and Settings\Administrador\Desktop\Fundacao CORPORATION OF PAWNO\Fundacao CORPORATION OF PAWNO\Equipe COP\GAMEMODES\RPG.pwn(25006) : error 035: argument type mismatch (argument 4)
C:\Documents and Settings\Administrador\Desktop\Fundacao CORPORATION OF PAWNO\Fundacao CORPORATION OF PAWNO\Equipe COP\GAMEMODES\RPG.pwn(25007) : error 035: argument type mismatch (argument 4)
+REP para quem ajudar.


Re: Strmid - mau.tito - 04.06.2013

pawn Код:
strmid(CarInfo[i][cOwner], DOF2_GetString(gstring,"Dono"), 32,999);
strmid(CarInfo[i][cDescription], DOF2_GetString(gstring,"Descriзгo"),32,999);



Re: Strmid - Schocc - 04.06.2013

Quote:

argument type mismatch (argument 4)

Esta funзгo utiliza sуmente 4 argumentos e vc estava colocando 5

strmid


Re: Strmid - BielCOP - 04.06.2013

Jб resolvi, usei:

pawn Код:
strmid(CarInfo[i][cOwner], DOF2_GetString(gstring,"Dono"), 0, strlen(DOF2_GetString(gstring,"Dono")), 999);
strmid(CarInfo[i][cDescription], DOF2_GetString(gstring,"Descriзгo"), 0, strlen(DOF2_GetString(gstring,"Descriзгo")), 999);
+REP para vcs dois


Re: Strmid - xGamminG - 04.06.2013

biel, me da o id do seu skype