How to make this!?
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    return true;
}
How i can check if player typed something in GetPVarString ?
Reply
#2

Do you mean comparing the text he just wrote with a string stored using PVars? Well use strcmp the same way as always to compare the strings.

pawn Код:
new string[128];
GetPVarString(playerid,"Key",string,128);
if(strcmp(text,string,true) == 0) // Strings match...
Reply
#3

Tnx alot man!
Reply
#4

EDIT.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)