[Ajuda] Problemas com verificaзгo.
#1

if(DOF2_GetInt(Arquivo2, "DiaDesban") < "Permanente")

Eu gostaria que ele procurasse a linha "DiaDesban" e se ela fosse igual "Permanente" (Й o que estб escrito).
Sу que dб um erro;
Код:
error 033: array must be indexed (variable "-unknown-")
Reply
#2

if(DOF2_GetInt(Arquivo2, "DiaDesban") == "Permanente")
Reply
#3

tens de usar strcmp

https://sampwiki.blast.hk/wiki/Strcmp
Reply
#4

pawn Код:
if(!strcmp(DOF2_GetInt(Arquivo2, "DiaDesban"),"Permanente", true))
{
}
Reply
#5

Quote:
Originally Posted by ForT
Посмотреть сообщение
pawn Код:
if(!strcmp(DOF2_GetInt(Arquivo2, "DiaDesban"),"Permanente", true))
{
}
error 035: argument type mismatch (argument 1)


Quote:
Originally Posted by ForT
Посмотреть сообщение
pawn Код:
if(!strcmp(DOF2_GetInt(Arquivo2, "DiaDesban"),"Permanente", true))
{
}

O erro й no "Permanente"

Quote:
Originally Posted by PT
Посмотреть сообщение
Poderia explicar como ?
Reply
#6

Tб errado o modo de uso, ForT.
Reply
#7

Alguйm ?
Reply
#8

Use get string!

@edit: depende oq vc esta inventando.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)