[Ajuda] Strmid
#1

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.
Reply
#2

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

Quote:

argument type mismatch (argument 4)

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

strmid
Reply
#4

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
Reply
#5

biel, me da o id do seu skype
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)