03.04.2010, 17:25
Hello! Can anyone tell me how to make a script that reads playername from .txt file.I just want to make a gate that only opens for people who is written in that .txt file. I am beginner at scripting. Please help!
new String[256],File:handle;
handle = fopen("playername.txt",io_append);
fread(handle,String);
fclose(handle);
if(strcmp(PlayerName(playerid),String,false){
//open gate
}
C:\SAMP\filterscripts\commands.pwn(169) : error 017: undefined symbol "PlayerName" C:\SAMP\filterscripts\commands.pwn(1132) : error 030: compound statement not closed at the end of file (started at line 54) |