03.05.2015, 09:50
PHP код:
if(!strcmp(cmdtext, "/gopos", true))
{
if(fexist("mypos.txt"))
{
new File:IFile = fopen("mypos.txt", io_read), str[128];
while(fread(IFile, str))
{
if(str[0] == '#') continue;
new Float:X, Float:Y, Float:Z;
if(sscanf(str, "fff",X, Y, Z))
{
SetPlayerPos(playerid, X, Y, Z);
}
else
{
printf("(i) Invalid Line: %s", str);
}
}
fclose(IFile);
}
return 1;
}
Thank you