GetString problem
#1

pawn Код:
if(DOF2_GetString(pFile(playerid),"Clan") == "AClass") return SetPlayerColor(playerid,0x7100B8AA);
ERROR

error 033: array must be indexed (variable "DOF2_GetString")
Reply
#2

Use strcmp to compare strings.
Reply
#3

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
Use strcmp to compare strings.
Nty, i'm using CMDZ, well why its not working?
Reply
#4

Quote:
Originally Posted by Lirbo
Посмотреть сообщение
Nty, i'm using CMDZ, well why its not working?
Are you serious? strcmp (string compare) has different usage, its not only for commands!

pawn Код:
if(!strcmp(DOF2_GetString(pFile(playerid),"Clan"), "AClass")) return SetPlayerColor(playerid,0x7100B8AA);
Reply
#5

Quote:
Originally Posted by Lirbo
Посмотреть сообщение
Nty, i'm using CMDZ, well why its not working?
Hes saying you should use strcmp in the GetString place.
Reply
#6

Ex:
pawn Код:
if(!strcmp(DOF2_GetString(pFile(playerid),"Clan"),"AClass")) return SetPlayerColor(playerid,0x7100B8AA);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)